MOtor control Pololu
Dependencies: Encoder HIDScope mbed-dsp mbed
Diff: main.cpp
- Revision:
- 15:743fc8794a1f
- Parent:
- 14:91403dd3dcf5
--- a/main.cpp Mon Oct 20 11:38:18 2014 +0000 +++ b/main.cpp Mon Oct 20 14:02:05 2014 +0000 @@ -59,7 +59,7 @@ motordir = 0; else motordir = 1; - pwm_motor.write(abs(new_pwm)); + pwm_motor.write(fabs(new_pwm)); } }