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

Committer:
hazheng
Date:
Tue Apr 18 20:51:06 2017 +0000
Branch:
Drift
Revision:
82:992ba6f31e24
Parent:
80:c85cb93713b3
Child:
84:2c22d01e8ae9
Finished state switching.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hazheng 80:c85cb93713b3 1 #pragma once
hazheng 80:c85cb93713b3 2 #ifndef STATE_MANAGER_H
hazheng 80:c85cb93713b3 3 #define STATE_MANAGER_H
hazheng 80:c85cb93713b3 4
hazheng 80:c85cb93713b3 5 #include <mbed.h>
hazheng 80:c85cb93713b3 6
hazheng 80:c85cb93713b3 7 class States;
hazheng 80:c85cb93713b3 8
hazheng 82:992ba6f31e24 9 #define STANDBY_STATE 0
hazheng 82:992ba6f31e24 10 #define RUNNING_STATE 1
hazheng 82:992ba6f31e24 11 #define TESTING_STATE 2
hazheng 80:c85cb93713b3 12
hazheng 80:c85cb93713b3 13
hazheng 82:992ba6f31e24 14 //void state_manager_set_current_state(States* stat);
hazheng 82:992ba6f31e24 15
hazheng 82:992ba6f31e24 16 //void state_manager_clear_current_state();
hazheng 80:c85cb93713b3 17
hazheng 80:c85cb93713b3 18 void state_manager_update(float deltaTime);
hazheng 80:c85cb93713b3 19
hazheng 82:992ba6f31e24 20 void state_manager_switch_state(uint8_t state);
hazheng 82:992ba6f31e24 21
hazheng 80:c85cb93713b3 22
hazheng 80:c85cb93713b3 23 #endif //STATE_MANAGER_H