![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xx
Fork of PES1 by
Diff: Roboter.h
- Revision:
- 4:fdcf3b5009c6
- Parent:
- 3:24e098715b78
- Child:
- 6:4af735d26b7a
diff -r 24e098715b78 -r fdcf3b5009c6 Roboter.h --- a/Roboter.h Tue Apr 04 13:27:59 2017 +0000 +++ b/Roboter.h Tue Apr 11 11:47:04 2017 +0000 @@ -10,12 +10,12 @@ public: - Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR, Servo* s1, Servo* s2); + 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 turn(); + void findBlock(); private: @@ -24,6 +24,10 @@ PwmOut* pwmL; PwmOut* pwmR; + Servo*s1; + Servo*s2; + DigitalIn * switch1; + DigitalIn* switch2;