Drivemotorservice H

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 1

#ifndef MotorService_H

#define MotorService_H
#include "ES_Types.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include

"ES_Configure.h"
"ES_Timers.h"
"ES_Framework.h"
"ES_Types.h"
"ES_Events.h"
"inc/hw_memmap.h"
"inc/hw_gpio.h"
"inc/hw_pwm.h"
"inc/hw_sysctl.h"
"inc/hw_types.h"

// Public Function Prototypes


bool InitDriveMotorService ( void );
//bool PostDriveMotorService( ES_Event ThisEvent );
ES_Event RunDriveMotorService( ES_Event ThisEvent );
/*
NewRPMCommandRight
Takes an int as a parameter in RPM. Negative RPM spins wheel backward, positive
spins forward
RPMs are usually between -50 and 50
Returns nothing
*/
void NewRPMCommandRight(int NewRPM);
/*
NewRPMCommandLeft
Takes an int as a parameter in RPM. Negative RPM spins wheel backward, positive
spins forward
RPMs are usually between -50 and 50
Returns nothing
*/
void NewRPMCommandLeft(int NewRPM);
/*
GetRPMComR
Takes no parameter. Returns the Commanded RPM to the right wheel
*/
int GetRPMComR( void );
/*
GetRPMComR
Takes no parameter. Returns the Commanded RPM to the left wheel
*/
int GetRPMComL( void );
void StopMotors(void);
void ResetSumError(void);
#endif /* MotorService_H */

You might also like