
motor aansturing moet lineair zijn is het niet
Dependencies: MODSERIAL Encoder mbed HIDScope
Diff: main.cpp
- Revision:
- 5:46dae55f0ab0
- Parent:
- 4:e171c9fa5447
- Child:
- 6:3031e8abb052
--- a/main.cpp Mon Sep 28 10:22:38 2015 +0000 +++ b/main.cpp Mon Sep 28 10:24:31 2015 +0000 @@ -31,8 +31,8 @@ AnalogIn potleft(A1); AnalogIn potright(A0); -DigitalIn button(PTA4) -int button_on = 0 +DigitalIn button(PTA4); +int button_on = 0; void move_mot1(float left) { @@ -99,8 +99,8 @@ move_mot2(right); if(button.read() == button_on) { - motor1_enc.reset; - motor2_enc.reset; + motor1_enc.reset(); + motor2_enc.reset(); } }