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

Drivealongtrailsm H

This document is the header file for a state machine that drives along a trail. It includes function prototypes for running and starting the state machine, querying the current state, and querying the Hall effect sensor subtract value. The state machine has two possible states: Driving and DriveTurnAround.

Uploaded by

api-310813713
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)
40 views1 page

Drivealongtrailsm H

This document is the header file for a state machine that drives along a trail. It includes function prototypes for running and starting the state machine, querying the current state, and querying the Hall effect sensor subtract value. The state machine has two possible states: Driving and DriveTurnAround.

Uploaded by

api-310813713
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

W:\_ME218bTeams\DoYouEvenStateMachine_Team17\ME218B\Final Project\CODE\Headers\DriveAlongTrailSM.

h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

Page 1

/****************************************************************************
Header File
DriveAlongTrailSM.h
Author
Anne Alter

Date
2/14/16
****************************************************************************/

#ifndef DriveAlongTrailSM_H
#define DriveAlongTrailSM_H
#include "ES_Types.h"
#include "ES_Configure.h"

//type defines
typedef enum{Driving, DriveTurnAround} CurrentDriveAlongTrailState_t;
//public function prototypes
ES_Event RunDriveAlongTrailSM(ES_Event CurrentEvent);
void StartDriveAlongTrailSM(ES_Event CurrentEvent);
CurrentDriveAlongTrailState_t QueryDriveAlongTrailSM(void);
uint32_t QueryHallEffectSubtract(void);
#endif /* DriveAlongTrailSM_H */

You might also like