The Code Repository for the REV0 Steering Wheel.
Dependencies: CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses
Fork of REVO_Updated_Steering by
Diff: Steering.cpp
- Revision:
- 5:05f8a36b5cdd
- Parent:
- 4:a4fb060e7840
- Child:
- 7:df257df56363
--- a/Steering.cpp Sat Oct 04 17:35:15 2014 +0000 +++ b/Steering.cpp Sat Oct 04 17:55:27 2014 +0000 @@ -1,5 +1,6 @@ #include "Steering.h" + void HomeScreen() { CANMessage Rxmsg; @@ -268,26 +269,14 @@ while(1) { if(biSWBL.read()) - HomeScreen(); - - if(biSWTR.read()) { ON(); - wait(1); - HomeScreen(); - } - if(biSWTL.read()) - { - ResetCommand(); - wait(1); - HomeScreen(); + //wait(1); + // HomeScreen(); } if(biSWBR.read()) { - if(screen) - AMSScreen2(); - else - AMSScreen1(); + ResetCommand(); } CAN_Steering.write(Txmsg_Drive); wait(0.3);