Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LineFollowingRobot/IRSensor_H.h
- 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(); };