Dependencies:   EthernetInterface mbed-rtos mbed

Fork of mbed_driver_ver_0_3_0 by yuki makura

Files at this revision

API Documentation at this revision

Comitter:
yukisega
Date:
Thu Nov 08 00:06:23 2018 +0000
Parent:
3:c8ae2c222d57
Commit message:
PWM?????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c8ae2c222d57 -r aa4b64e1d35c main.cpp
--- a/main.cpp	Sun Oct 28 04:35:33 2018 +0000
+++ b/main.cpp	Thu Nov 08 00:06:23 2018 +0000
@@ -199,8 +199,11 @@
         g_mtx.unlock();
 
         /* Output PWM */
-        motor_P = (0.5 + pwmduty);
-        motor_N = (0.5 - pwmduty);
+        motor_P = (0.5 - pwmduty);
+        motor_N = (0.5 + pwmduty);
+
+//        motor_P = (0.5 + pwmduty);
+//        motor_N = (0.5 - pwmduty);
 
         
     }//while(1) END