changes to motor library

Fork of motor by GDP 4

Committer:
lh14g13
Date:
Mon Nov 07 16:00:45 2016 +0000
Branch:
testing
Revision:
7:9aaa4f73bb32
Parent:
6:b4346ef9fa04
Child:
11:4a6f97cc1f1e
just added in a method to remove the amount of functions;

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 7:9aaa4f73bb32 6 void runMotor();
lh14g13 0:b0476dcfa14c 7 void DefaultMode();
lh14g13 7:9aaa4f73bb32 8 void centerWheels();
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);
lh14g13 6:b4346ef9fa04 20
lh14g13 6:b4346ef9fa04 21 //advanced corner
lh14g13 6:b4346ef9fa04 22
lh14g13 6:b4346ef9fa04 23 void deltaCornerRight(float speed,float deltaTheta);
lh14g13 7:9aaa4f73bb32 24 void deltaCornerLeft(float speed,float deltaTheta);
lh14g13 7:9aaa4f73bb32 25 void steering(float center, float theta, int maxspeed)