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
StateMachine/TestingState.h@82:992ba6f31e24, 2017-04-18 (annotated)
- Committer:
- hazheng
- Date:
- Tue Apr 18 20:51:06 2017 +0000
- Branch:
- Drift
- Revision:
- 82:992ba6f31e24
- Child:
- 86:51048c1f132f
Finished state switching.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hazheng | 82:992ba6f31e24 | 1 | #pragma once |
hazheng | 82:992ba6f31e24 | 2 | #ifndef TESTING_STATE_H |
hazheng | 82:992ba6f31e24 | 3 | #define TESTING_STATE_H |
hazheng | 82:992ba6f31e24 | 4 | |
hazheng | 82:992ba6f31e24 | 5 | #include <mbed.h> |
hazheng | 82:992ba6f31e24 | 6 | #include "States.h" |
hazheng | 82:992ba6f31e24 | 7 | |
hazheng | 82:992ba6f31e24 | 8 | class TestingState : public States |
hazheng | 82:992ba6f31e24 | 9 | { |
hazheng | 82:992ba6f31e24 | 10 | public: |
hazheng | 82:992ba6f31e24 | 11 | TestingState(); |
hazheng | 82:992ba6f31e24 | 12 | ~TestingState(); |
hazheng | 82:992ba6f31e24 | 13 | |
hazheng | 82:992ba6f31e24 | 14 | virtual void DrawUserInterface(); |
hazheng | 82:992ba6f31e24 | 15 | |
hazheng | 82:992ba6f31e24 | 16 | virtual void Update(float deltaTime); |
hazheng | 82:992ba6f31e24 | 17 | |
hazheng | 82:992ba6f31e24 | 18 | virtual uint8_t HasTouchPosFunction() const; |
hazheng | 82:992ba6f31e24 | 19 | |
hazheng | 82:992ba6f31e24 | 20 | virtual uint8_t HasTouchIrqFunction() const; |
hazheng | 82:992ba6f31e24 | 21 | |
hazheng | 82:992ba6f31e24 | 22 | virtual void TouchPosCallback(int16_t x, int16_t y); |
hazheng | 82:992ba6f31e24 | 23 | |
hazheng | 82:992ba6f31e24 | 24 | virtual void TouchIrqCallback(); |
hazheng | 82:992ba6f31e24 | 25 | }; |
hazheng | 82:992ba6f31e24 | 26 | |
hazheng | 82:992ba6f31e24 | 27 | #endif //TESTING_STATE_H |