ManualControl
Dependencies: TPixy-Interface
Fork of MbedOS_Robot_Team by
Diff: Drivers/motor_driver_l.cpp
- Revision:
- 24:e88753f090b8
- Parent:
- 13:2a00b7a6f4bd
diff -r 58ec2b891a25 -r e88753f090b8 Drivers/motor_driver_l.cpp --- a/Drivers/motor_driver_l.cpp Sun Mar 11 00:37:58 2018 +0000 +++ b/Drivers/motor_driver_l.cpp Tue Apr 03 16:00:10 2018 +0000 @@ -61,7 +61,7 @@ if( motor_status != MOTOR_UNINIT ) { SpeedMutexL.lock(); - DirL = 0; + DirL = 1; PwmL.pulsewidth_us(abs(speed)); SpeedMutexL.unlock(); motor_status = MOTOR_FORWARD; @@ -83,7 +83,7 @@ if( motor_status != MOTOR_UNINIT ) { SpeedMutexL.lock(); - DirL = 1; + DirL = 0; PwmL.pulsewidth_us(abs(speed)); SpeedMutexL.unlock(); motor_status = MOTOR_REVERSE;