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 enterReadyState ()
 resets timestamps for ready
 
void enterDrivingState ()
 resets timestamps for driving
 
bool processGoSignal ()
 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 14 of file systemDiagnostics.hpp.

Member Function Documentation

◆ enterDrivingState()

void R2DLogics::enterDrivingState ( )
inline

resets timestamps for driving

Definition at line 39 of file systemDiagnostics.hpp.

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

◆ enterReadyState()

void R2DLogics::enterReadyState ( )
inline

resets timestamps for ready

Definition at line 29 of file systemDiagnostics.hpp.

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

◆ processGoSignal()

bool R2DLogics::processGoSignal ( )
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 53 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 23 of file systemDiagnostics.hpp.

◆ r2d

bool R2DLogics::r2d {false}

Definition at line 24 of file systemDiagnostics.hpp.

◆ readyTimestamp

Metro R2DLogics::readyTimestamp {READY_TIMEOUT_MS}

Definition at line 15 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 19 of file systemDiagnostics.hpp.


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