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:
- 31:9aa1a2d7d1fb
- Parent:
- 20:c3f4828f3cbc
diff -r c3f4828f3cbc -r 9aa1a2d7d1fb Steering.cpp --- a/Steering.cpp Sat Oct 25 16:53:34 2014 +0000 +++ b/Steering.cpp Thu Oct 30 23:42:36 2014 +0000 @@ -207,7 +207,7 @@ } -void request_status_change() +void Drive_Request() { char drive_status_request = !drive_status; @@ -227,9 +227,7 @@ display.ClearScreen(); display.SelectFont(Arial12,BLACK,ReadData); display.GotoXY(26,16); - display.PrintString("REQUEST SENT TO CHANGE\n\r DRIVE STATUS TO: \n\r"); - display.PrintString(status_string); - display.PrintString(".\n\r"); + display.PrintString("DRIVE MODE\n\r REQUEST...\n\r"); printf(status_string); return; @@ -296,7 +294,7 @@ { if(biSWBL.read()) { - request_status_change(); + Drive_Request(); } if(biSWBR.read()) {