Finalny program mbed2

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Committer:
azmuth_sd
Date:
Tue Jun 09 08:24:40 2020 +0000
Revision:
0:33ff53112cc9
Ostatni program drugiej czesci mbed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
azmuth_sd 0:33ff53112cc9 1 #ifndef SERVO_H
azmuth_sd 0:33ff53112cc9 2 #define SERVO_H
azmuth_sd 0:33ff53112cc9 3 #include "led.h"
azmuth_sd 0:33ff53112cc9 4
azmuth_sd 0:33ff53112cc9 5 enum ServoState {CALLIB, IDLE, IN_PROGRESS};
azmuth_sd 0:33ff53112cc9 6 enum DetectorState {ACTIVE, INACTIVE};
azmuth_sd 0:33ff53112cc9 7
azmuth_sd 0:33ff53112cc9 8 class Servo {
azmuth_sd 0:33ff53112cc9 9
azmuth_sd 0:33ff53112cc9 10 private:
azmuth_sd 0:33ff53112cc9 11 Led myLed;
azmuth_sd 0:33ff53112cc9 12 enum DetectorState eReadDetector();
azmuth_sd 0:33ff53112cc9 13 enum ServoState eState;
azmuth_sd 0:33ff53112cc9 14 unsigned int uiCurrentPosition;
azmuth_sd 0:33ff53112cc9 15 unsigned int uiDesiredPosition;
azmuth_sd 0:33ff53112cc9 16
azmuth_sd 0:33ff53112cc9 17 public:
azmuth_sd 0:33ff53112cc9 18 void Automat();
azmuth_sd 0:33ff53112cc9 19 void Callib(void);
azmuth_sd 0:33ff53112cc9 20 void GoTo(unsigned int uiPosition);
azmuth_sd 0:33ff53112cc9 21 void StepRight(unsigned int uiSteps);
azmuth_sd 0:33ff53112cc9 22 };
azmuth_sd 0:33ff53112cc9 23
azmuth_sd 0:33ff53112cc9 24 #endif