changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

motor.h

Committer:
lh14g13
Date:
2016-10-24
Revision:
6:b4346ef9fa04
Parent:
0:b0476dcfa14c
Child:
7:9aaa4f73bb32
Child:
17:28216063e33e

File content as of revision 6:b4346ef9fa04:

#include "mbed.h"
#include "TFC.h"

int  motor_setup(); 
void TurnOn();
void RunMotor();
void DefaultMode();


//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 deltaCornerRight(float speed,float deltaTheta);
void deltaCornerLeft(float speed,float deltaTheta);