changes to motor library
Fork of motor by
motor.h
- Committer:
- lh14g13
- Date:
- 2016-11-07
- Branch:
- testing
- Revision:
- 7:9aaa4f73bb32
- Parent:
- 6:b4346ef9fa04
- Child:
- 11:4a6f97cc1f1e
File content as of revision 7:9aaa4f73bb32:
#include "mbed.h" #include "TFC.h" int motor_setup(); void TurnOn(); void runMotor(); void DefaultMode(); void centerWheels(); //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); //advanced corner void deltaCornerRight(float speed,float deltaTheta); void deltaCornerLeft(float speed,float deltaTheta); void steering(float center, float theta, int maxspeed)