![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Copy_Assignment3
Dependencies: mbed MCP23017 WattBob_TextLCD mbed-rtos
source/my_structures.cpp
- Committer:
- aoc2
- Date:
- 2018-03-28
- Revision:
- 1:d980a57e422a
- Parent:
- 0:8940db3353d7
File content as of revision 1:d980a57e422a:
#include "my_structures.h" /* Initialize the values of the structure */ void initRAWValuesStruct(struct engineRAWValues &structVal) { structVal.engineState = false; structVal.acceleratorValue = 0; structVal.acceleratorValue = 0; } /* Initialize the values of the structure */ void initCarStatisticsStruct(carStatistics &structStat, vector<float> *speedVec) { structStat.p_speedVector = speedVec; structStat.sizeOfAvg = SIZE_AVG_SPEED; structStat.averageSpeed = 0; structStat.distance = 0; } /* Initialize the values of the structure */ void initMailStructure(mailStruct &structMail) { structMail.avgSpeed = 0; structMail.accelerator = 0; structMail.brake = 0; }