Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
R2DLogics Struct Reference

#include <systemDiagnostics.hpp>

Collaboration diagram for R2DLogics:
Collaboration graph

Public Member Functions

void enter_ready_state ()
 resets timestamps for ready
 
void enter_driving_state ()
 resets timestamps for driving
 
bool process_go_signal ()
 Processes the go signal.
 

Public Attributes

Metro readyTimestamp {READY_TIMEOUT_MS}
 
Metro releaseEbsTimestamp {RELEASE_EBS_TIMEOUT_MS}
 
Metro engageEbsTimestamp {ENGAGE_EBS_TIMEOUT_MS}
 
bool r2d {false}
 

Detailed Description

Definition at line 10 of file systemDiagnostics.hpp.

Member Function Documentation

◆ enter_driving_state()

void R2DLogics::enter_driving_state ( )
inline

resets timestamps for driving

Definition at line 34 of file systemDiagnostics.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enter_ready_state()

void R2DLogics::enter_ready_state ( )
inline

resets timestamps for ready

Definition at line 25 of file systemDiagnostics.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_go_signal()

bool R2DLogics::process_go_signal ( )
inline

Processes the go signal.

This function is responsible for processing the go signal. It performs the necessary actions based on the received signal.

Returns
0 if the go signal was successfully processed, 1 otherwise.

Definition at line 45 of file systemDiagnostics.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ engageEbsTimestamp

Metro R2DLogics::engageEbsTimestamp {ENGAGE_EBS_TIMEOUT_MS}

Timestamp from when EBS is activate on entering ready state, used to tolerate a small delay in which pneumatic line pressure is low

Definition at line 19 of file systemDiagnostics.hpp.

◆ r2d

bool R2DLogics::r2d {false}

Definition at line 20 of file systemDiagnostics.hpp.

◆ readyTimestamp

Metro R2DLogics::readyTimestamp {READY_TIMEOUT_MS}

Definition at line 11 of file systemDiagnostics.hpp.

◆ releaseEbsTimestamp

Metro R2DLogics::releaseEbsTimestamp {RELEASE_EBS_TIMEOUT_MS}

Timestamp from when EBS is released on r2d, used to tolerate a small delay before entering driving state

Definition at line 15 of file systemDiagnostics.hpp.


The documentation for this struct was generated from the following file: