Drivers for the mini robot designed for Princeton's MAE 433 course.

Dependencies:   mbed-dsp mbed-rtos mbed

Dependents:   MAE433_Library_Tester RobotBalancerv2

Revision:
4:2d38ad348e0d
Parent:
0:9afc272fa65f
Child:
8:da95e4ccbe4c
diff -r 72db173215c7 -r 2d38ad348e0d HBridge.cpp
--- a/HBridge.cpp	Fri Jun 24 21:57:29 2016 +0000
+++ b/HBridge.cpp	Sat Jun 25 00:37:31 2016 +0000
@@ -11,7 +11,7 @@
 HBridge::HBridge(PinName PWMPin, PinName DirectionPin)
 : PWMOut(PWMPin), DirectionOut(DirectionPin) {
     // 10 ms period == 100 Hz works well.
-    PWMOut.period_ms(10);
+    PWMOut.period_ms(1);
 }
 
 HBridge::~HBridge() {