-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMORT_AUTONOMOUS.h
53 lines (40 loc) · 1.66 KB
/
MORT_AUTONOMOUS.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
* FILE NAME: MORT_AUTONOMOUS.h
*
* DESCRIPTION:
* This is the include file that defines all I/O used in the MORT 2005 Robot
* It contains aliases and function prototypes used in all MORT 'C' routines.
*
*******************************************************************************/
#include "MORT_DEFINES.h"
// Defines for different autonomous modes
#define CLOSE_SHOOT 1 // closest position DON'T move, use camera to pan, pull hood all the way back
#define CLOSE_STRAIGHT 2 // closest position move straight to goal w/camera
#define CLOSE_DELAY 3 // closest position delay then move straight to goal w/camera
#define MIDDLE_RIGHT 4 // middle position move to center field, turn right, move to target, shoot
#define DEFENSE 5 // farthest position move straight to goal to block
// Define the state for CLOSE_STRAIGHT
// No states for this mode
// Define the state for CLOSE_SHOOT
// No states for this mode
// Define the state for CLOSE_DELAY
#define CLOSE_DELAY_WAIT 1
#define CLOSE_DELAY_SHOOT 2
// Define the state for MIDDLE_RIGHT
#define MIDDLE_RIGHT_OUT 1
#define MIDDLE_RIGHT_DELAY 2
#define MIDDLE_RIGHT_TURN 3
#define MIDDLE_RIGHT_DELAY_TWO 4
#define MIDDLE_RIGHT_APPROACH 5
#define MIDDLE_RIGHT_SHOOT 6
// Define the state for DEFENSE
// No states for this mode
/*****************************FUNCTION PROTOTYPES*************************************/
int Get_Auto_Mode( void );
void MORT_autonomous_mode(int mode);
void close_straight(void);
void close_delay(void);
void close_shoot(void);
void middle_right(void);
void defense(void);
void turn_off_everything(void);