Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MCP23017 WattBob_TextLCD mbed-rtos
my_structures.cpp
00001 #include "my_structures.h" 00002 00003 /* Initialize the values of the structure */ 00004 void initRAWValuesStruct(struct engineRAWValues &structVal) 00005 { 00006 structVal.engineState = false; 00007 structVal.acceleratorValue = 0; 00008 structVal.acceleratorValue = 0; 00009 } 00010 00011 /* Initialize the values of the structure */ 00012 void initCarStatisticsStruct(carStatistics &structStat, vector<float> *speedVec) 00013 { 00014 structStat.p_speedVector = speedVec; 00015 structStat.sizeOfAvg = SIZE_AVG_SPEED; 00016 structStat.averageSpeed = 0; 00017 structStat.distance = 0; 00018 } 00019 00020 /* Initialize the values of the structure */ 00021 void initMailStructure(mailStruct &structMail) 00022 { 00023 structMail.avgSpeed = 0; 00024 structMail.accelerator = 0; 00025 structMail.brake = 0; 00026 }
Generated on Wed Jul 13 2022 17:41:33 by
1.7.2