![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xx
Fork of PES1 by
Diff: Roboter.h
- Revision:
- 2:953263712480
- Parent:
- 1:4e84271a70c6
- Child:
- 3:24e098715b78
--- a/Roboter.h Tue Apr 04 11:55:54 2017 +0000 +++ b/Roboter.h Tue Apr 04 13:22:24 2017 +0000 @@ -3,23 +3,27 @@ #include <mbed.h> #include "IRSensor.h" +#include "Servo.h" class Roboter { public: - Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR); + Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR, Servo* s1, Servo* s2); void bandeAusweichen(); float readSensor1(); + void pickup(); private: IRSensor sensors[6]; + PwmOut* pwmL; PwmOut* pwmR; - + +