motor library?????
THIS needs to be deleted
Diff: motor.h
- Revision:
- 0:b0476dcfa14c
--- /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);