0% found this document useful (0 votes)
62 views1 page

Rocketmotorservice

This header file defines functions and data types for a rocket motor service based on an events and services framework. It includes event definitions and framework headers. It defines an enumeration for rocket motor states like initialization, forward motion in two states, backward motion in two states, and a waiting state. It also prototypes public functions to initialize the rocket motor, check for a lever, post events to the motor, and run the state machine to control the motor.

Uploaded by

api-384495602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views1 page

Rocketmotorservice

This header file defines functions and data types for a rocket motor service based on an events and services framework. It includes event definitions and framework headers. It defines an enumeration for rocket motor states like initialization, forward motion in two states, backward motion in two states, and a waiting state. It also prototypes public functions to initialize the rocket motor, check for a lever, post events to the motor, and run the state machine to control the motor.

Uploaded by

api-384495602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

/****************************************************************************

Header file for RocketMotorService


based on the Gen 2 Events and Services Framework

****************************************************************************/

#ifndef RocketMotorService_H
#define RocketMotorService_H

// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Framework.h" /* gets ES_Framework */
#include "ES_Types.h" /* gets bool type for returns */
#include "PWM16Tiva.h"

// typedefs for the states


// State definitions for use with the query function
typedef enum { RocketInitPState, RocketForwardState1, RocketForwardState2,
RocketBackState1, RocketBackState2,RocketWaitingState } RocketMotorState_t;

// Public Function Prototypes


bool InitRocketMotor ( uint8_t Priority );
bool Check4Lever(void);
bool PostRocketMotor( ES_Event ThisEvent );
ES_Event RunRocketMotor( ES_Event ThisEvent );

#endif /* RocketMotorService_H */

You might also like