mbed2 zad 5b
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
Diff: Servo/Servo.h
- Revision:
- 4:7855d3ab4c15
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo/Servo.h Mon Jun 08 21:49:36 2020 +0000 @@ -0,0 +1,21 @@ +#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