![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xx
Fork of PES1 by
Roboter.h
- Committer:
- itslinear
- Date:
- 2017-04-11
- Revision:
- 4:fdcf3b5009c6
- Parent:
- 3:24e098715b78
- Child:
- 6:4af735d26b7a
File content as of revision 4:fdcf3b5009c6:
#ifndef ROBOTER_H #define ROBOTER_H #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, Servo* s1, Servo* s2, DigitalIn * switch1, DigitalIn* switch2 ); void bandeAusweichen(); float readSensor1(); void pickup(); void findBlock(); private: IRSensor sensors[6]; PwmOut* pwmL; PwmOut* pwmR; Servo*s1; Servo*s2; DigitalIn * switch1; DigitalIn* switch2; }; #endif