v1
Dependencies: PinDetect TextLCD mbed
Fork of SunflowerMach1 by
Diff: MotorDrivers/Motor.cpp
- Revision:
- 10:0b8a98b1e6b1
- Parent:
- 6:902bec57d9ae
diff -r 764eb7341754 -r 0b8a98b1e6b1 MotorDrivers/Motor.cpp --- a/MotorDrivers/Motor.cpp Mon Nov 11 14:04:12 2013 +0000 +++ b/MotorDrivers/Motor.cpp Mon Nov 11 19:01:15 2013 +0000 @@ -7,7 +7,9 @@ pwmOut = motorPwmInitDutyCycle; positiveOut = 0; - negativeOut = 0; + negativeOut = 0; + direction = 0; + pwmOut = 1; } void Motor::start() {