![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
für holdor
Fork of PES by
Diff: main.cpp
- Revision:
- 2:953263712480
- Parent:
- 1:4e84271a70c6
- Child:
- 3:24e098715b78
diff -r 4e84271a70c6 -r 953263712480 main.cpp --- a/main.cpp Tue Apr 04 11:55:54 2017 +0000 +++ b/main.cpp Tue Apr 04 13:22:24 2017 +0000 @@ -14,13 +14,17 @@ PwmOut pwmL( PA_8 ); PwmOut pwmR( PA_9 ); +// Periphery for servos +Servos servos1(PB_7); +Servos servos2(PA_6); + //motor stuff DigitalOut enableMotorDriver(PB_2); //indicator leds arround robot DigitalOut leds[] = { PC_8, PC_6, PB_12, PA_7, PC_0, PC_9 }; -Roboter roboter1(&distance, &bit0, &bit1, &bit2, &pwmL, &pwmR); +Roboter roboter1(&distance, &bit0, &bit1, &bit2, &pwmL, &pwmR, &servos1,&servos2); int main() { @@ -36,3 +40,4 @@ } } +