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

Dependencies:   mbed-dsp mbed-rtos mbed

Dependents:   MAE433_Library_Tester RobotBalancerv2

Files at this revision

API Documentation at this revision

Comitter:
Electrotiger
Date:
Thu Jun 30 23:52:51 2016 +0000
Parent:
7:28f3a76792cd
Commit message:
Decreased H-Bridge Period to Provide for Even Finer Control.

Changed in this revision

HBridge.cpp Show annotated file Show diff for this revision Revisions of this file
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() {