Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of motor by
motor.h
- Committer:
- lh14g13
- Date:
- 2016-11-14
- Branch:
- testing
- Revision:
- 11:4a6f97cc1f1e
- Parent:
- 7:9aaa4f73bb32
File content as of revision 11:4a6f97cc1f1e:
#include "mbed.h" #include "TFC.h" #include <math.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);