PID motor controll for the biorobotics project.

Dependencies:   FastPWM QEI

Dependents:   PID_example Motor_calibration Demo_mode Demo_mode ... more

Revision:
11:34bd7f42c9db
Parent:
10:d50c4957a193
Child:
12:2c65bcbebf8a
--- a/motor.cpp	Wed Oct 31 10:38:38 2018 +0000
+++ b/motor.cpp	Wed Oct 31 10:45:40 2018 +0000
@@ -55,7 +55,7 @@
     printcount = 0;
 }
 
-void Motor::define_current_angle_as_x_radians(double radians)() {
+void Motor::define_current_angle_as_x_radians(double radians) {
     encoder.reset();
     target_angle = 0;
     rotation_frame_offset = radians;