Nicolae Marton / Mbed 2 deprecated TDP3_OOP

Dependencies:   mbed

Revision:
5:bb0bec710c91
Parent:
4:645b5d648c64
--- a/LineFollowingRobot/IRSensor_H.h	Wed Feb 06 14:02:07 2019 +0000
+++ b/LineFollowingRobot/IRSensor_H.h	Thu Mar 07 14:00:42 2019 +0000
@@ -24,9 +24,10 @@
     bool m_lineSensor[5];
     
     int m_color;
-    short int m_error, m_prevError;
-    const float m_Kp, m_Ki, m_Kd;
+    int m_error, m_prevError;
+    float m_Kp, m_Ki, m_Kd;
     float m_P, m_I, m_D;
+    float m_PID;
     
 
 
@@ -52,7 +53,7 @@
     
     //controls the motor depending on the error calculated by the previous methods
     //takes in both RobotControls instances which control the left and right
-    void MotorControl(RobotControl controlLeft, RobotControl controlRight);
+    void MotorControl();
     
     
 };