mbed2 zad 5b

Dependencies:   LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI

Servo/Servo.h

Committer:
krzysiek99
Date:
2020-06-09
Revision:
5:cafab5a4d1c9
Parent:
4:7855d3ab4c15

File content as of revision 5:cafab5a4d1c9:

#ifndef SERVO_H
    #define SERVO_H
    #include "ServoGui.h"
    enum ServoState{IDLE, CALLIB, IN_PROGRESS};
    class Servo
    {
        public:
            enum ServoState eState;
            unsigned int uiCurrentPosition;
            unsigned int uiDesiredPosition;
            Servo(unsigned int uiInitialPosition = 0);
            enum DetectorState eReadDetector(void);
            void Callib(void);         
            void GoTo(unsigned int uiPosition);
            void Automat(void);
        private:
            ServoGui MyGui;
    };
#else
    #error "This class was definied previously"
#endif