
motor aansturing moet lineair zijn is het niet
Dependencies: MODSERIAL Encoder mbed HIDScope
Diff: main.cpp
- Revision:
- 7:eb239942830d
- Parent:
- 6:3031e8abb052
- Child:
- 8:83d522d8f2b8
--- a/main.cpp Mon Sep 28 11:56:06 2015 +0000 +++ b/main.cpp Mon Sep 28 12:25:41 2015 +0000 @@ -98,11 +98,12 @@ // pc.printf("%f \n",left); move_mot1(left); move_mot2(right); - //if(button.read() == button_on) - //{ - // motor1_enc.reset(); - // motor2_enc.reset(); - //} + if(button.read() == button_on) + { + motor1_enc.reset(); + motor2_enc.reset(); + } + wait(0.01f); } }