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: Actuator/Motor.cpp
- Revision:
- 1:d43df9a7cef2
- Parent:
- 0:3ead6014ad51
--- a/Actuator/Motor.cpp Sun Nov 03 23:28:27 2019 +0000
+++ b/Actuator/Motor.cpp Sat Oct 31 07:12:28 2020 +0000
@@ -6,8 +6,8 @@
{
INH1_=1;
INH2_=1;
- IN1_.period_us(50);
- IN2_.period_us(50);
+ IN1_.period_us(100);
+ IN2_.period_us(100);
}
void Motor::setSpeed_percent(float percent, char direction)
@@ -28,7 +28,7 @@
IN1_=duty;
IN2_=0;
}
- else if (direction == BREAK)
+ else if (direction == BRAKE)
{
IN1_=1;
IN2_=1;