Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PES by
Roboter.h@26:c2f7c6cdeece, 2017-05-01 (annotated)
- Committer:
- Shukle
- Date:
- Mon May 01 15:37:23 2017 +0000
- Revision:
- 26:c2f7c6cdeece
- Parent:
- 17:caf5ae550f2e
final vom 1.5.2017
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 |