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:
- 4:645b5d648c64
- Parent:
- 3:54c41af9e119
- Child:
- 5:bb0bec710c91
--- a/LineFollowingRobot/IRSensor_H.h Sun Feb 03 16:42:44 2019 +0000 +++ b/LineFollowingRobot/IRSensor_H.h Wed Feb 06 14:02:07 2019 +0000 @@ -20,7 +20,7 @@ DigitalIn m_midRightIR; DigitalIn m_rightIR; - bool m_prevDirL, m_prevDirR; + bool m_lineSensor[5]; int m_color; @@ -34,6 +34,7 @@ bool m_dirL, m_dirR, m_toggle; float m_speedL, m_speedR; + bool m_prevDirL, m_prevDirR; IRSensor(PinName pin1, PinName pin2, PinName pin3, PinName pin4, PinName pin5, float Kp, float Ki, float Kd);