changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

Committer:
lh14g13
Date:
Sun Nov 20 13:24:43 2016 +0000
Branch:
motorupdate
Revision:
14:bc77edc4adb0
Parent:
11:4a6f97cc1f1e
Child:
15:f40e834d063b
added speedadj() function;

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 11:4a6f97cc1f1e 3 #include <math.h>
lh14g13 14:bc77edc4adb0 4 #include "angular_speed.h"
lh14g13 0:b0476dcfa14c 5
lh14g13 0:b0476dcfa14c 6 int motor_setup();
lh14g13 0:b0476dcfa14c 7 void TurnOn();
lh14g13 7:9aaa4f73bb32 8 void runMotor();
lh14g13 0:b0476dcfa14c 9 void DefaultMode();
lh14g13 7:9aaa4f73bb32 10 void centerWheels();
lh14g13 0:b0476dcfa14c 11
lh14g13 0:b0476dcfa14c 12 //Speed control
lh14g13 0:b0476dcfa14c 13 void Acc(float& motorA, float& motorB);
lh14g13 0:b0476dcfa14c 14 void Decc(float& motorA, float& motorB);
lh14g13 0:b0476dcfa14c 15 void StartLine();
lh14g13 0:b0476dcfa14c 16
lh14g13 0:b0476dcfa14c 17 //Corner Control
lh14g13 0:b0476dcfa14c 18
lh14g13 0:b0476dcfa14c 19 void PWM_cornerCntrl(bool a,float pwmRatio);
lh14g13 0:b0476dcfa14c 20 void cornerLeft(float speed);
lh14g13 0:b0476dcfa14c 21 void cornerRight(float speed);
lh14g13 6:b4346ef9fa04 22
lh14g13 6:b4346ef9fa04 23 //advanced corner
lh14g13 11:4a6f97cc1f1e 24 void dutyCycleCorner( float speed, float angle);
lh14g13 11:4a6f97cc1f1e 25 void corner(float &w1,float &w2,float deltaTheta,int maxspeed);
lh14g13 11:4a6f97cc1f1e 26 void centerWheels();
lh14g13 11:4a6f97cc1f1e 27 void steering(float center, float theta, int maxspeed);