![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Motor
Fork of BERTL14_MOTOR_PWM by
Revision 1:75558096c7e0, committed 2016-01-08
- Comitter:
- Matthias_Praja
- Date:
- Fri Jan 08 16:00:22 2016 +0000
- Parent:
- 0:8487a0785e95
- Commit message:
- Bertl-Motor
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue May 20 07:01:29 2014 +0000 +++ b/main.cpp Fri Jan 08 16:00:22 2016 +0000 @@ -18,17 +18,18 @@ int main() { // Richtungen werden bestimmt - MotorL_FORWARD = MotorR_REVERSE = 1; + MotorL_FORWARD = 1 + MotorR_FORWARD = 0; // Periodendauer wird eingestellt MotorL_EN.period_ms(10); MotorR_EN.period_ms(10); while(1) { - MotorL_EN = 0.5f; + MotorL_EN = 10.0f; MotorR_EN.pulsewidth_ms(5); - wait(1); - MotorL_EN = 0.0f; + + MotorL_EN = 10.0f; MotorR_EN.pulsewidth_ms(0); - wait(1); + } } \ No newline at end of file