changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

motor.h

Committer:
lh14g13
Date:
2016-11-20
Branch:
motorupdate
Revision:
14:bc77edc4adb0
Parent:
11:4a6f97cc1f1e
Child:
15:f40e834d063b

File content as of revision 14:bc77edc4adb0:

#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
void Acc(float& motorA, float& motorB);
void Decc(float& motorA, float& motorB);
void StartLine();

//Corner Control

void PWM_cornerCntrl(bool a,float pwmRatio);
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 centerWheels();
void steering(float center, float theta, int maxspeed);