Owen Roseborough / Mbed 2 deprecated BeverageRoverV1

Dependencies:   mbed

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);