Penn Electric Racing / Mbed 2 deprecated REVO_Updated_Steering

Dependencies:   CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses

Fork of REVO_Updated_Steering by Penn Electric

Files at this revision

API Documentation at this revision

Comitter:
tmccurbin
Date:
Thu Oct 30 23:42:36 2014 +0000
Parent:
20:c3f4828f3cbc
Commit message:
Changed the name of function "request_status_change" to Drive_Request.; Changed "requesting change of drive status" to "Drive Mode Request..."

Changed in this revision

Steering.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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())
         {