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.
Diff: motorControl.h
- Revision:
- 0:17d76ace37b6
diff -r 000000000000 -r 17d76ace37b6 motorControl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/motorControl.h Fri Mar 06 17:20:00 2015 +0000 @@ -0,0 +1,28 @@ +// motorControl.h ----------------------------------------- + +#define STOPSPEED 0.85 +#define WARMUPSPEED 0.70 +#define MAX_VOLTAGE 1.2 +#define COUNTSOF1REV1CH 166.67 +#define FTOF1REV 0.64444 +#define MAXSPEED 1.3 +#define INITIALPWMINCREMENT 0.15 +#define NUMOFEXPINCREMENTS 10 +#define NUMOFEXPINCCOMPLETEWAVE 20 +#define SIZEOFINCREMENT 1.1 +#define TIMEINCREMENTS 0.5 + +extern PwmOut leftSideMotor; +extern PwmOut rightSideMotor; + +void stopMotors (void); +int warmupStart(void); +void recordMotorCounts(int *ptrMotorCounts); +void assignAverage(float average); +void exponentialAccAndDecCurves(void); +void stopMotors1 (void); +void accelerateMotors (void); +void decelerateMotors (void); +void motorsFullSpeedForeward (void); +void testingFunction(void); +void testingFunction1(void); \ No newline at end of file