PlayBack

Dependencies:   TPixy-Interface

Fork of ManualControlFinal by ECE4333 - 2018 - Ahmed & Brandon

Revision:
24:e88753f090b8
Parent:
9:fe56b888985c
diff -r 58ec2b891a25 -r e88753f090b8 Drivers/motor_driver_r.cpp
--- a/Drivers/motor_driver_r.cpp	Sun Mar 11 00:37:58 2018 +0000
+++ b/Drivers/motor_driver_r.cpp	Tue Apr 03 16:00:10 2018 +0000
@@ -60,7 +60,7 @@
     if( motor_status != MOTOR_UNINIT ) 
     {
         SpeedMutexR.lock();
-        DirR = 0;
+        DirR = 1;
         PwmR.pulsewidth_us(abs(speed));
         SpeedMutexR.unlock();
         motor_status = MOTOR_FORWARD;
@@ -82,7 +82,7 @@
     if( motor_status != MOTOR_UNINIT ) 
     {
         SpeedMutexR.lock();
-        DirR = 1;
+        DirR = 0;
         PwmR.pulsewidth_us(abs(speed));
         SpeedMutexR.unlock();
         motor_status = MOTOR_REVERSE;