Simon Dziadon / Mbed 2 deprecated mbed_cz2_5_test

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers servo.h Source File

servo.h

00001 #ifndef SERVO_H
00002 #define SERVO_H
00003 #include "led.h"
00004 
00005 enum ServoState {CALLIB, IDLE, IN_PROGRESS};
00006 enum DetectorState {ACTIVE, INACTIVE};
00007 
00008 class Servo {
00009     
00010 private:
00011     Led myLed;
00012     enum DetectorState eReadDetector();
00013     enum ServoState eState;
00014     unsigned int uiCurrentPosition;
00015     unsigned int uiDesiredPosition;
00016     
00017 public:    
00018     void Automat();
00019     void Callib(void);
00020     void GoTo(unsigned int uiPosition);
00021     void StepRight(unsigned int uiSteps);
00022 };
00023 
00024 #endif