Control project for the Lift-arm. Works with ROS Melodic

Dependencies:   mbed Servo ros_lib_melodic ULN2003_StepperDriver Async_4pin_Stepper

Revision:
1:7c355adbc977
Parent:
0:441289ea4e29
Child:
3:4b6080e86761
--- a/src/MotorControl.cpp	Thu May 27 18:36:23 2021 +0000
+++ b/src/MotorControl.cpp	Thu May 27 18:53:26 2021 +0000
@@ -36,7 +36,7 @@
 }
 
 MotorControl::MotorControl(PinName a, PinName b, PinName i, int r, bool c, double p, motor* m, double ms, double kp, double ki, double ec)
-            : encoder(a, b, i, r, c, p, ec), mot(m), max_speed(ms), Kp(kp), Ki(ki) {
+            : encoder(a, b, r, c, p, ec), mot(m), max_speed(ms), Kp(kp), Ki(ki) {
     output = 0.1; dir = 1;                          //default to avoid bugs
     max_out = 0;                                    //flag set
     acc_err = 0;