changes to motor library

Fork of motor by GDP 4

Committer:
lh14g13
Date:
Tue Oct 18 14:57:55 2016 +0000
Revision:
0:b0476dcfa14c
Child:
6:b4346ef9fa04
added library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lh14g13 0:b0476dcfa14c 1 #include "mbed.h"
lh14g13 0:b0476dcfa14c 2 #include "TFC.h"
lh14g13 0:b0476dcfa14c 3
lh14g13 0:b0476dcfa14c 4 int motor_setup();
lh14g13 0:b0476dcfa14c 5 void TurnOn();
lh14g13 0:b0476dcfa14c 6 void RunMotor();
lh14g13 0:b0476dcfa14c 7 void DefaultMode();
lh14g13 0:b0476dcfa14c 8
lh14g13 0:b0476dcfa14c 9
lh14g13 0:b0476dcfa14c 10 //Speed control
lh14g13 0:b0476dcfa14c 11 void Acc(float& motorA, float& motorB);
lh14g13 0:b0476dcfa14c 12 void Decc(float& motorA, float& motorB);
lh14g13 0:b0476dcfa14c 13 void StartLine();
lh14g13 0:b0476dcfa14c 14
lh14g13 0:b0476dcfa14c 15 //Corner Control
lh14g13 0:b0476dcfa14c 16
lh14g13 0:b0476dcfa14c 17 void PWM_cornerCntrl(bool a,float pwmRatio);
lh14g13 0:b0476dcfa14c 18 void cornerLeft(float speed);
lh14g13 0:b0476dcfa14c 19 void cornerRight(float speed);