changes to motor library
Fork of motor by
Diff: motor.h
- Revision:
- 0:b0476dcfa14c
- Child:
- 6:b4346ef9fa04
diff -r 000000000000 -r b0476dcfa14c motor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/motor.h Tue Oct 18 14:57:55 2016 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "TFC.h" + +int motor_setup(); +void TurnOn(); +void RunMotor(); +void DefaultMode(); + + +//Speed control +void Acc(float& motorA, float& motorB); +void Decc(float& motorA, float& motorB); +void StartLine(); + +//Corner Control + +void PWM_cornerCntrl(bool a,float pwmRatio); +void cornerLeft(float speed); +void cornerRight(float speed);