changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

motor.h

Committer:
lh14g13
Date:
2017-04-27
Branch:
motorupdate
Revision:
47:bafec50148b6
Parent:
46:2ba3e590f46a
Child:
48:2e39f9fca850

File content as of revision 47:bafec50148b6:

#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,float tuner);
void sensorCorner(float &w1,float &w2,float theta,float speed, float tune);
 int cornerlimiter = 10;