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

Dependencies:   mbed-dsp mbed-rtos mbed

Dependents:   MAE433_Library_Tester RobotBalancerv2

Revision:
8:da95e4ccbe4c
Parent:
4:2d38ad348e0d
diff -r 28f3a76792cd -r da95e4ccbe4c HBridge.cpp
--- a/HBridge.cpp	Wed Jun 29 21:41:55 2016 +0000
+++ b/HBridge.cpp	Thu Jun 30 23:52:51 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(1);
+    PWMOut.period_us(250);
 }
 
 HBridge::~HBridge() {