Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
r2d.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define POWER_ON_DELAY_MS   15000
 

Typedefs

typedef enum _r2d_mode r2d_mode
 

Enumerations

enum  _r2d_mode { R2D_MODE_STARTUP , R2D_MODE_IDLE , R2D_MODE_DRIVE , R2D_MODE_ERROR }
 

Functions

void play_r2d_sound ()
 
r2d_mode r2d_state_machine (r2d_mode cur_state, int apps_value)
 

Macro Definition Documentation

◆ POWER_ON_DELAY_MS

#define POWER_ON_DELAY_MS   15000

Definition at line 4 of file r2d.h.

Typedef Documentation

◆ r2d_mode

typedef enum _r2d_mode r2d_mode

Enumeration Type Documentation

◆ _r2d_mode

enum _r2d_mode
Enumerator
R2D_MODE_STARTUP 
R2D_MODE_IDLE 
R2D_MODE_DRIVE 
R2D_MODE_ERROR 

Definition at line 6 of file r2d.h.

Function Documentation

◆ play_r2d_sound()

void play_r2d_sound ( )

Definition at line 124 of file r2d.cpp.

Here is the caller graph for this function:

◆ r2d_state_machine()

r2d_mode r2d_state_machine ( r2d_mode  cur_state,
int  apps_value 
)

Definition at line 146 of file r2d.cpp.

Here is the call graph for this function: