No.9 Robotics / Mbed 2 deprecated Robotics_DCMotor

Dependencies:   mbed

Fork of Robotics_Lab_DCMotor by LDSC_Robotics

Files at this revision

API Documentation at this revision

Comitter:
YCTung
Date:
Tue Apr 12 09:17:44 2016 +0000
Parent:
1:6747911cdd90
Child:
3:178ee1fe1c60
Commit message:
fix the pwm2 bug

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 07 23:00:14 2016 +0000
+++ b/main.cpp	Tue Apr 12 09:17:44 2016 +0000
@@ -84,7 +84,6 @@
     if(PIout_2 >= 0.5f)PIout_2 = 0.5f;
     else if(PIout_2 <= -0.5f)PIout_2 = -0.5f;
     pwm2.write(PIout_2 + 0.5f);
-    pwm2.write(0);
     TIM1->CCER |= 0x40;
 }