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

StateMachine/States.h

Committer:
hazheng
Date:
2017-04-18
Branch:
Drift
Revision:
80:c85cb93713b3
Child:
84:2c22d01e8ae9

File content as of revision 80:c85cb93713b3:

#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