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:
84:2c22d01e8ae9
--- a/StateMachine/StateManager.h	Tue Apr 18 19:42:15 2017 +0000
+++ b/StateMachine/StateManager.h	Tue Apr 18 20:51:06 2017 +0000
@@ -6,18 +6,18 @@
 
 class States;
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+#define STANDBY_STATE 0
+#define RUNNING_STATE 1
+#define TESTING_STATE 2
 
-void state_manager_set_current_state(States* stat);
 
-void state_manager_clear_current_state();
+//void state_manager_set_current_state(States* stat);
+
+//void state_manager_clear_current_state();
 
 void state_manager_update(float deltaTime);
 
-#ifdef __cplusplus
-}
-#endif
+void state_manager_switch_state(uint8_t state);
+
 
 #endif //STATE_MANAGER_H
\ No newline at end of file