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:
Sat Oct 04 17:55:27 2014 +0000
Parent:
4:a4fb060e7840
Child:
7:df257df56363
Commit message:
Removed TL and TR Button functionality.; Set BL to ON; BR to Reset

Changed in this revision

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