![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xx
Fork of PES1 by
Roboter.h@4:fdcf3b5009c6, 2017-04-11 (annotated)
- Committer:
- itslinear
- Date:
- Tue Apr 11 11:47:04 2017 +0000
- Revision:
- 4:fdcf3b5009c6
- Parent:
- 3:24e098715b78
- Child:
- 6:4af735d26b7a
hallo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itslinear | 0:306a2438de17 | 1 | #ifndef ROBOTER_H |
itslinear | 0:306a2438de17 | 2 | #define ROBOTER_H |
itslinear | 0:306a2438de17 | 3 | |
itslinear | 0:306a2438de17 | 4 | #include <mbed.h> |
itslinear | 0:306a2438de17 | 5 | #include "IRSensor.h" |
schneju2 | 2:953263712480 | 6 | #include "Servo.h" |
itslinear | 0:306a2438de17 | 7 | |
itslinear | 1:4e84271a70c6 | 8 | class Roboter |
itslinear | 0:306a2438de17 | 9 | { |
itslinear | 1:4e84271a70c6 | 10 | |
itslinear | 0:306a2438de17 | 11 | public: |
itslinear | 0:306a2438de17 | 12 | |
itslinear | 4:fdcf3b5009c6 | 13 | Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR, Servo* s1, Servo* s2, DigitalIn * switch1, DigitalIn* switch2 ); |
itslinear | 1:4e84271a70c6 | 14 | |
itslinear | 1:4e84271a70c6 | 15 | void bandeAusweichen(); |
itslinear | 1:4e84271a70c6 | 16 | float readSensor1(); |
itslinear | 3:24e098715b78 | 17 | void pickup(); |
itslinear | 4:fdcf3b5009c6 | 18 | void findBlock(); |
itslinear | 3:24e098715b78 | 19 | |
itslinear | 0:306a2438de17 | 20 | |
itslinear | 1:4e84271a70c6 | 21 | private: |
itslinear | 1:4e84271a70c6 | 22 | IRSensor sensors[6]; |
itslinear | 3:24e098715b78 | 23 | |
itslinear | 1:4e84271a70c6 | 24 | |
itslinear | 1:4e84271a70c6 | 25 | PwmOut* pwmL; |
itslinear | 1:4e84271a70c6 | 26 | PwmOut* pwmR; |
itslinear | 4:fdcf3b5009c6 | 27 | Servo*s1; |
itslinear | 4:fdcf3b5009c6 | 28 | Servo*s2; |
itslinear | 4:fdcf3b5009c6 | 29 | DigitalIn * switch1; |
itslinear | 4:fdcf3b5009c6 | 30 | DigitalIn* switch2; |
itslinear | 3:24e098715b78 | 31 | |
itslinear | 3:24e098715b78 | 32 | |
itslinear | 0:306a2438de17 | 33 | |
itslinear | 0:306a2438de17 | 34 | |
itslinear | 0:306a2438de17 | 35 | |
itslinear | 1:4e84271a70c6 | 36 | }; |
itslinear | 0:306a2438de17 | 37 | |
itslinear | 0:306a2438de17 | 38 | |
itslinear | 0:306a2438de17 | 39 | |
itslinear | 1:4e84271a70c6 | 40 | #endif |