motor drive libary to use speed control, coasting and dynamic braking. NOTE, dynamic braking my result in large currents. this may or may not set the motor driver on fire/break it/other undesired effects. so read the data sheet folks.
Fork of Motordriver by
Diff: motordriver.h
- Revision:
- 6:415f0e127063
- Parent:
- 4:5fb1296c0d60
--- a/motordriver.h Thu Nov 25 13:34:15 2010 +0000 +++ b/motordriver.h Fri Jul 13 19:57:27 2018 +0000 @@ -79,13 +79,11 @@ PwmOut _pwm; DigitalOut _fwd; DigitalOut _rev; - int Brakeable; // cna the motor driver break + int Brakeable; // can the motor driver break int sign; //prevents throwing the motor from full foward to full reverse and stuff melting. }; - - #endif