![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xx
Fork of PES1 by
Roboter.h@17:caf5ae550f2e, 2017-04-25 (annotated)
- Committer:
- Shukle
- Date:
- Tue Apr 25 12:26:04 2017 +0000
- Revision:
- 17:caf5ae550f2e
- Parent:
- 10:75a18bf17c86
- Child:
- 18:6547e54ac803
endschalter entfernt;
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" |
Shukle | 10:75a18bf17c86 | 7 | #include "readCamera.h" |
itslinear | 0:306a2438de17 | 8 | |
itslinear | 1:4e84271a70c6 | 9 | class Roboter |
itslinear | 0:306a2438de17 | 10 | { |
itslinear | 1:4e84271a70c6 | 11 | |
itslinear | 0:306a2438de17 | 12 | public: |
itslinear | 0:306a2438de17 | 13 | |
Shukle | 17:caf5ae550f2e | 14 | Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR, Servo* s1, Servo* s2); |
itslinear | 1:4e84271a70c6 | 15 | |
itslinear | 1:4e84271a70c6 | 16 | void bandeAusweichen(); |
itslinear | 1:4e84271a70c6 | 17 | float readSensor1(); |
itslinear | 3:24e098715b78 | 18 | void pickup(); |
itslinear | 6:4af735d26b7a | 19 | |
itslinear | 3:24e098715b78 | 20 | |
itslinear | 0:306a2438de17 | 21 | |
itslinear | 1:4e84271a70c6 | 22 | private: |
itslinear | 1:4e84271a70c6 | 23 | IRSensor sensors[6]; |
itslinear | 3:24e098715b78 | 24 | |
itslinear | 1:4e84271a70c6 | 25 | |
itslinear | 1:4e84271a70c6 | 26 | PwmOut* pwmL; |
itslinear | 1:4e84271a70c6 | 27 | PwmOut* pwmR; |
itslinear | 4:fdcf3b5009c6 | 28 | Servo*s1; |
itslinear | 4:fdcf3b5009c6 | 29 | Servo*s2; |
itslinear | 4:fdcf3b5009c6 | 30 | DigitalIn * switch1; |
itslinear | 4:fdcf3b5009c6 | 31 | DigitalIn* switch2; |
itslinear | 3:24e098715b78 | 32 | |
itslinear | 3:24e098715b78 | 33 | |
itslinear | 0:306a2438de17 | 34 | |
itslinear | 0:306a2438de17 | 35 | |
itslinear | 0:306a2438de17 | 36 | |
itslinear | 1:4e84271a70c6 | 37 | }; |
itslinear | 0:306a2438de17 | 38 | |
itslinear | 0:306a2438de17 | 39 | |
itslinear | 0:306a2438de17 | 40 | |
itslinear | 1:4e84271a70c6 | 41 | #endif |