Hlimi Omar
/
biniou
TRR2018 omar
Fork of biniou by
Diff: main.cpp
- Revision:
- 11:bc24b3ba51a9
- Parent:
- 8:1d8c3ca5e508
- Child:
- 23:04d393220daa
diff -r 5bf1e6af26c0 -r bc24b3ba51a9 main.cpp --- a/main.cpp Sat Sep 08 22:24:50 2018 +0000 +++ b/main.cpp Sun Sep 09 23:14:53 2018 +0000 @@ -3,20 +3,32 @@ int main() { -murs_init(); -obstacle_init(); -section_init(); -throttle_init(); +mursInit(); +#ifdef DLVV +obstacleInit(); +#endif +sectionInit(); +maxSpeedInit(); +throttleInit(); + + while (1) { - murs_update(); - obstacle_update(); - section_update(); - throttle_update(); - - murs_output(); - obstacle_output(); - section_output(); - throttle_output(); + + mursUpdate(); + #ifdef DLVV + obstacleUpdate(); + #endif + sectionUpdate(); + maxSpeedUpdate(); + throttleUpdate(); + + mursOutput(); + #ifdef DLVV + obstacleOutput(); + #endif + sectionOutput(); + maxSpeedOutput(); + throttleOutput(); } } \ No newline at end of file