changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

motor.h

Committer:
FatCookies
Date:
2016-11-30
Branch:
motorupdate
Revision:
22:85cf7b6b0422
Parent:
21:aaa482dad274
Child:
23:96c36a38d83b

File content as of revision 22:85cf7b6b0422:

#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,int speed);