MTM PPO mbed cz2

Dependencies:   LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI

servo.h

Committer:
paweler
Date:
2020-06-15
Revision:
0:5d432267a99f

File content as of revision 0:5d432267a99f:

#ifndef SERVO_H
#define SERVO_H

#include "servo_gui.h"

enum DetectorState {ACTIVE,INACTIVE};
enum ServoState {CALLIB, IDLE, IN_PROGRESS};

//void DetectorInit(void);

//void ServoInit(unsigned int uiServoFrequency);

class Servo
{
    public:
        Servo(float = 0.05);
        enum DetectorState eReadDetector(void);
        void Callib(void);
        void GoTo(unsigned int);
        void Step(unsigned int);
    private:
        enum ServoState eState;
        unsigned int uiCurrentPosition;
        unsigned int uiDesiredPosition;
        float fDelay;
        ServoGui MyGui;
};

#endif