changes to motor library
Fork of motor by
motor.h
- Committer:
- FatCookies
- Date:
- 2016-11-29
- Revision:
- 17:28216063e33e
- Parent:
- 6:b4346ef9fa04
File content as of revision 17:28216063e33e:
#include "mbed.h" #include "TFC.h" #include <math.h> #include "angular_speed.h" int motor_setup(); void TurnOn(); void runMotor(); void DefaultMode(); void centerWheels(); //Speed control float setDutyCycle(float dutyC, int w,int targetW); //Corner Control void cornerLeft(float speed); void cornerRight(float speed); //advanced corner void dutyCycleCorner( float speed, float angle); void corner(float &w1,float &w2,float deltaTheta,int maxspeed); void steering(float center, float theta, int maxspeed);