DC_Motor change
Fork of Motor by
Revision 2:88caaf813c12, committed 2018-10-11
- Comitter:
- m211656
- Date:
- Thu Oct 11 17:42:26 2018 +0000
- Parent:
- 1:c75b234558af
- Commit message:
- Change1
Changed in this revision
Motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c75b234558af -r 88caaf813c12 Motor.cpp --- a/Motor.cpp Tue Sep 07 11:21:42 2010 +0000 +++ b/Motor.cpp Thu Oct 11 17:42:26 2018 +0000 @@ -26,7 +26,7 @@ _pwm(pwm), _fwd(fwd), _rev(rev) { // Set initial condition of PWM - _pwm.period(0.001); + _pwm.period(0.02); _pwm = 0; // Initial condition of output enables @@ -42,7 +42,7 @@ void Motor::period(float period){ - _pwm.period(period); + _pwm.period(0.2); }