Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
main.cpp File Reference
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 

Variables

SystemData system_data
 
Communicator communicator = Communicator(&system_data)
 
DigitalReceiver digital_receiver
 
DigitalSender digital_sender = DigitalSender()
 
ASState as_state = ASState(&system_data, &communicator, &digital_sender)
 
Metro rl_rpm_timer = Metro{LEFT_WHEEL_PUBLISH_INTERVAL}
 
Metro mission_timer = Metro(MISSION_PUBLISH_INTERVAL)
 
Metro state_timer = Metro(STATE_PUBLISH_INTERVAL)
 
IntervalTimer state_calculation_timer
 
uint8_t master_state_helper = static_cast<uint8_t>(15)
 
uint8_t checkup_state_helper = static_cast<uint8_t>(15)
 
uint8_t mission_helper = static_cast<uint8_t>(15)
 

Function Documentation

◆ loop()

void loop ( )

Definition at line 36 of file main.cpp.

Here is the call graph for this function:

◆ setup()

void setup ( )

Definition at line 26 of file main.cpp.

Here is the call graph for this function:

Variable Documentation

◆ as_state

Definition at line 15 of file main.cpp.

◆ checkup_state_helper

uint8_t checkup_state_helper = static_cast<uint8_t>(15)

Definition at line 23 of file main.cpp.

◆ communicator

Definition at line 11 of file main.cpp.

◆ digital_receiver

DigitalReceiver digital_receiver
Initial value:
=
Class responsible for the reading of the digital inputs into the Master teensy.
SystemData system_data
Definition main.cpp:10
Mission mission_
DigitalData digital_data_

Definition at line 12 of file main.cpp.

◆ digital_sender

DigitalSender digital_sender = DigitalSender()

Definition at line 14 of file main.cpp.

◆ master_state_helper

uint8_t master_state_helper = static_cast<uint8_t>(15)

Definition at line 22 of file main.cpp.

◆ mission_helper

uint8_t mission_helper = static_cast<uint8_t>(15)

Definition at line 24 of file main.cpp.

◆ mission_timer

Definition at line 18 of file main.cpp.

◆ rl_rpm_timer

Definition at line 17 of file main.cpp.

◆ state_calculation_timer

IntervalTimer state_calculation_timer

Definition at line 20 of file main.cpp.

◆ state_timer

Definition at line 19 of file main.cpp.

◆ system_data

SystemData system_data

Definition at line 10 of file main.cpp.