changes to motor library
Fork of motor by
Diff: motor.h
- Branch:
- testing
- Revision:
- 11:4a6f97cc1f1e
- Parent:
- 7:9aaa4f73bb32
- Child:
- 14:bc77edc4adb0
--- a/motor.h Fri Nov 11 12:50:48 2016 +0000 +++ b/motor.h Mon Nov 14 18:04:20 2016 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "TFC.h" +#include <math.h> int motor_setup(); void TurnOn(); @@ -19,7 +20,7 @@ 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) \ No newline at end of file +void dutyCycleCorner( float speed, float angle); +void corner(float &w1,float &w2,float deltaTheta,int maxspeed); +void centerWheels(); +void steering(float center, float theta, int maxspeed); \ No newline at end of file