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.
motorControl.h
- Committer:
- embedMasterForever
- Date:
- 2015-03-06
- Revision:
- 0:17d76ace37b6
File content as of revision 0:17d76ace37b6:
// 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);