firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
state.h File Reference

Car state machine. More...

#include "rtos.h"
Include dependency graph for state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  car_flags

Enumerations

enum  car_state {
  LV_ON = 0 , PRECHARGED , BRAKE_PRESSED , RTDS ,
  ZOOM , SOFT_FAULT , HARD_FAULT
}
enum  btsf_fault { BTSF_OK , BTSF_SKILL_ISSUE , BTSF_SHORT , BTSF_OPEN }
enum  apps_fault { APPS_OK , APPS_TIMEOUT , APPS_IMPLAUSIBILITY , APPS_ERROR }

Functions

void task_state_init (Global_Handles_t *handles_ptr)
 Initialize the state machine task and input queue.
float get_brake_pressure ()

Detailed Description

Car state machine.

Author
Jamie Pruett :)
Version
0.1
Date
2024-11-01

Enumeration Type Documentation

◆ apps_fault

enum apps_fault
Enumerator
APPS_OK 
APPS_TIMEOUT 
APPS_IMPLAUSIBILITY 
APPS_ERROR 

◆ btsf_fault

enum btsf_fault
Enumerator
BTSF_OK 
BTSF_SKILL_ISSUE 
BTSF_SHORT 
BTSF_OPEN 

◆ car_state

enum car_state
Enumerator
LV_ON 
PRECHARGED 
BRAKE_PRESSED 
RTDS 
ZOOM 
SOFT_FAULT 
HARD_FAULT 

Function Documentation

◆ get_brake_pressure()

float get_brake_pressure ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_state_init()

void task_state_init ( Global_Handles_t * handles_ptr)

Initialize the state machine task and input queue.

Parameters
handles_ptrPointer to FreeRTOS handles struct
Here is the call graph for this function:
Here is the caller graph for this function: