.
Fork of Motor by
Revision 3:1b9d3f564fbe, committed 2016-12-04
- Comitter:
- Viktor5
- Date:
- Sun Dec 04 15:11:17 2016 +0000
- Parent:
- 2:f265e441bcd9
- Commit message:
- .
Changed in this revision
Motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Motor.cpp Tue Nov 23 16:16:43 2010 +0000 +++ b/Motor.cpp Sun Dec 04 15:11:17 2016 +0000 @@ -36,7 +36,8 @@ _rev = 0; } -void Motor::speed(float speed) { +void Motor::speed(float speed) +{ _fwd = (speed > 0.0); _rev = (speed < 0.0); _pwm = abs(speed);