![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Roboter
Roboter.h@1:4e84271a70c6, 2017-04-04 (annotated)
- Committer:
- itslinear
- Date:
- Tue Apr 04 11:55:54 2017 +0000
- Revision:
- 1:4e84271a70c6
- Parent:
- 0:306a2438de17
- Child:
- 2:953263712480
fds
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" |
itslinear | 0:306a2438de17 | 6 | |
itslinear | 1:4e84271a70c6 | 7 | class Roboter |
itslinear | 0:306a2438de17 | 8 | { |
itslinear | 1:4e84271a70c6 | 9 | |
itslinear | 0:306a2438de17 | 10 | public: |
itslinear | 0:306a2438de17 | 11 | |
itslinear | 1:4e84271a70c6 | 12 | Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR); |
itslinear | 1:4e84271a70c6 | 13 | |
itslinear | 1:4e84271a70c6 | 14 | void bandeAusweichen(); |
itslinear | 1:4e84271a70c6 | 15 | float readSensor1(); |
itslinear | 0:306a2438de17 | 16 | |
itslinear | 1:4e84271a70c6 | 17 | private: |
itslinear | 1:4e84271a70c6 | 18 | IRSensor sensors[6]; |
itslinear | 1:4e84271a70c6 | 19 | |
itslinear | 1:4e84271a70c6 | 20 | PwmOut* pwmL; |
itslinear | 1:4e84271a70c6 | 21 | PwmOut* pwmR; |
itslinear | 0:306a2438de17 | 22 | |
itslinear | 0:306a2438de17 | 23 | |
itslinear | 0:306a2438de17 | 24 | |
itslinear | 0:306a2438de17 | 25 | |
itslinear | 1:4e84271a70c6 | 26 | }; |
itslinear | 0:306a2438de17 | 27 | |
itslinear | 0:306a2438de17 | 28 | |
itslinear | 0:306a2438de17 | 29 | |
itslinear | 1:4e84271a70c6 | 30 | #endif |