![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xx
Fork of PES1 by
Diff: Roboter.cpp
- Revision:
- 2:953263712480
- Parent:
- 1:4e84271a70c6
- Child:
- 3:24e098715b78
--- a/Roboter.cpp Tue Apr 04 11:55:54 2017 +0000 +++ b/Roboter.cpp Tue Apr 04 13:22:24 2017 +0000 @@ -1,7 +1,7 @@ #include "Roboter.h" -Roboter::Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut* pwmL, PwmOut* pwmR) +Roboter::Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut* pwmL, PwmOut* pwmR, Servo* s1, Servo* s2) { sensors[0].init( distance, bit0, bit1, bit2, 0); @@ -54,7 +54,17 @@ *pwmL = 0.5f+offsetDir+offsetLin; // Setzt die Duty-Cycle auf 50% *pwmR = 0.5f+offsetDir-offsetLin; - wait(0.1); + wait(0.1); + } + + + -} +void Roboter::pickup (){ + + + + +} +