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:
82:992ba6f31e24
Parent:
80:c85cb93713b3
Child:
83:b2c7c6f76575
--- a/main.cpp	Tue Apr 18 19:42:15 2017 +0000
+++ b/main.cpp	Tue Apr 18 20:51:06 2017 +0000
@@ -20,6 +20,7 @@
 
 #include "StateManager.h"
 #include "RunningState.h"
+#include "StandbyState.h"
 
 #include "PinAssignment.h"
 
@@ -74,7 +75,8 @@
     //DebugCounter counter(10, PTE5);
     
     
-    state_manager_set_current_state(new RunningState());
+    state_manager_switch_state(STANDBY_STATE);
+    //States* temp = new StandbyState();
     
     while (1) 
     {