SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
Front Namespace Reference

Name space used solely for front ECU logic. More...

Functions

void blinkStart ()
 
void run ()
 Runs front ECU code.
 
void loadStateMap ()
 Load values that ID each unique state.
 
void updateCurrentState ()
 Update and outputs the current state.
 
void updateStartLight (bool hasBeat)
 Update the startlight.
 
void setChargeSignal ()
 Enables the charging signal dependent on the current state.
 
void lowPriorityValues ()
 Outputs values that are of lower priority.
 
void highPriorityValues ()
 Outputs values that are of higher priority.
 

Variables

LOG_TAG ID = "Front Teensy"
 
SerialVar::SerialFloat TVAggression = SERIALVAR_TORQUE_VECTORING_AGGRESSION
 
struct State::State_tcurrentState
 
std::map< uint32_t, struct State::State_t * > stateMap
 

Detailed Description

Name space used solely for front ECU logic.

Function Documentation

◆ blinkStart()

void Front::blinkStart ( )

Definition at line 65 of file src/front.cpp.

◆ highPriorityValues()

void Front::highPriorityValues ( )

Outputs values that are of higher priority.

Definition at line 157 of file FrontValues.cpp.

◆ loadStateMap()

void Front::loadStateMap ( )

Load values that ID each unique state.

Definition at line 100 of file FrontValues.cpp.

◆ lowPriorityValues()

void Front::lowPriorityValues ( )

Outputs values that are of lower priority.

Definition at line 130 of file FrontValues.cpp.

◆ run()

void Front::run ( )

Runs front ECU code.

Definition at line 72 of file src/front.cpp.

◆ setChargeSignal()

void Front::setChargeSignal ( )

Enables the charging signal dependent on the current state.

Definition at line 126 of file FrontValues.cpp.

◆ updateCurrentState()

void Front::updateCurrentState ( )

Update and outputs the current state.

Definition at line 109 of file FrontValues.cpp.

◆ updateStartLight()

void Front::updateStartLight ( bool  hasBeat)

Update the startlight.

Parameters
hasBeatWhether the heartbeat is working

Definition at line 115 of file FrontValues.cpp.

Variable Documentation

◆ currentState

struct State::State_t * Front::currentState

Definition at line 98 of file FrontValues.cpp.

◆ ID

LOG_TAG Front::ID = "Front Teensy"

Definition at line 15 of file src/front.cpp.

◆ stateMap

std::map<uint32_t, struct State::State_t *> Front::stateMap

Definition at line 97 of file FrontValues.cpp.

◆ TVAggression

Definition at line 22 of file src/front.cpp.