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/L298.cpp
- Revision:
- 7:b9c2097e5cb2
- Parent:
- 6:b457f1e2fff8
--- a/LineFollowingRobot/L298.cpp Thu Mar 14 10:37:05 2019 +0000 +++ b/LineFollowingRobot/L298.cpp Thu Mar 14 12:31:39 2019 +0000 @@ -16,7 +16,7 @@ } -void RobotControl::SetDirection(bool dir){ +void L298::SetDirection(bool dir){ /*set direction of one of the sides depending on pwmSelect direction : 1 go forward ,0 go backwards*/ @@ -37,7 +37,7 @@ } -void RobotControl::SetSpeed(float speed){ +void L298::SetSpeed(float speed){ /*set speed on the pwm which is point by m_pwmPtr (set by SetDirection) speed : the speed given to the motor, ranges from 0 to 1*/