PID motor controll for the biorobotics project.
Dependents: PID_example Motor_calibration Demo_mode Demo_mode ... more
Diff: motor.cpp
- Revision:
- 9:48a0b4a67283
- Parent:
- 8:bff5193c7d74
- Child:
- 10:d50c4957a193
diff -r bff5193c7d74 -r 48a0b4a67283 motor.cpp --- a/motor.cpp Wed Oct 31 08:52:56 2018 +0000 +++ b/motor.cpp Wed Oct 31 09:12:28 2018 +0000 @@ -26,6 +26,7 @@ pid = PID(); target_angle = 0; + extra_reduction_ratio = 1.0; printcount = 0; pid_period = 0;