changes to motor library
Fork of motor by
motor.h
- Committer:
- lh14g13
- Date:
- 2017-01-13
- Branch:
- motorupdate
- Revision:
- 33:734ce4c36c3f
- Parent:
- 23:96c36a38d83b
- Child:
- 44:b46efc310b83
File content as of revision 33:734ce4c36c3f:
#include "mbed.h" #include "TFC.h" #include <math.h> #include "angular_speed.h" void runMotor(); void DefaultMode(); //Speed control float setDutyCycle(float dutyC, int w,int targetW); //Corner Control void dutyCycleCorner( float speed, float angle); void sensorCorner(float &w1,float &w2,float theta,float speed, float tune);