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
Diff: StateMachine/States.h
- Branch:
- Drift
- Revision:
- 80:c85cb93713b3
- Child:
- 84:2c22d01e8ae9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/StateMachine/States.h Tue Apr 18 19:26:33 2017 +0000 @@ -0,0 +1,26 @@ +#pragma once +#ifndef STATES_H +#define STATES_H + +#include <mbed.h> + +class States +{ +public: + States(){} + ~States(){} + + virtual void DrawUserInterface(){} + + virtual void Update(float deltaTime){} + + virtual uint8_t HasTouchPosFunction() const{return 0;} + + virtual uint8_t HasTouchIrqFunction() const{return 0;} + + virtual void TouchPosCallback(int16_t x, int16_t y){} + + virtual void TouchIrqCallback(){} +}; + +#endif //STATES_H \ No newline at end of file