Control an H-Bridge using a PwmOut (enable) and two DigitalOuts (direction select)

Fork of Motor by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
miczyg
Date:
Sun May 17 17:56:48 2015 +0000
Parent:
9:9b00a28bc790
Child:
11:2d806364fdcc
Commit message:
po wykomentowaniu kawa?ka z przesy?em na pc nagle dosta? power x20, i ma problem ze skr?tami, ca?kowicie zmieniona dynamika jazdy.; NIE WIADOMO CO SIE STALO, ZE TAK SIE ZMIENILO!!!!

Changed in this revision

Motor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Motor.cpp	Fri May 15 13:44:38 2015 +0000
+++ b/Motor.cpp	Sun May 17 17:56:48 2015 +0000
@@ -28,7 +28,7 @@
 {
 
     // Set initial condition of PWM
-    _pwm.period(0.001);
+    _pwm.period(0.0005);
     _pwm = 0;
     _stdby = 1;
     // Initial condition of output enables