SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.

Dependencies:   TSI USBDevice mbed-dev

Fork of SmartWheels by haofan Zheng

Branch:
Drift
Revision:
86:51048c1f132f
Parent:
85:f3911aab41d9
Child:
98:fc92bb37ee17
diff -r f3911aab41d9 -r 51048c1f132f StateMachine/RunningState.cpp
--- a/StateMachine/RunningState.cpp	Tue Apr 18 22:27:14 2017 +0000
+++ b/StateMachine/RunningState.cpp	Wed Apr 19 03:46:21 2017 +0000
@@ -15,7 +15,7 @@
     m_lastAngle(0.0f),
     m_lastAngleAbs(0.0f),
     m_cornerRatio(1.0f),
-    m_lastLineFound(BOTH_FOUND),
+    //m_lastLineFound(BOTH_FOUND),
     m_shouldTerminate(0)
 {}
 
@@ -141,7 +141,7 @@
 
     m_lastAngle = totalAngleDegrees;
     m_lastAngleAbs = totalAngleDegreesAbs;
-    m_lastLineFound = centerLine[lineFoundRefRow];
+    //m_lastLineFound = centerLine[lineFoundRefRow];
 }
 
 uint8_t RunningState::HasTouchPosFunction() const
@@ -154,11 +154,6 @@
     return 1;
 }
 
-void RunningState::TouchPosCallback(int16_t x, int16_t y)
-{
-    
-}
-
 void RunningState::TouchIrqCallback()
 {
     //TerminateProcess();