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

#include <systemDiagnostics.hpp>

Collaboration diagram for FailureDetection:
Collaboration graph

Public Member Functions

bool has_any_component_timed_out ()
 

Public Attributes

Metro pc_alive_timestamp_ {COMPONENT_TIMESTAMP_TIMEOUT}
 
Metro steer_alive_timestamp_ {COMPONENT_TIMESTAMP_TIMEOUT}
 
Metro inversor_alive_timestamp_ {COMPONENT_TIMESTAMP_TIMEOUT}
 
Metro res_signal_loss_timestamp_ {RES_TIMESTAMP_TIMEOUT}
 
Metro dc_voltage_drop_timestamp_ {DC_VOLTAGE_TIMEOUT}
 
Metro dc_voltage_hold_timestamp_
 
bool steer_dead_ {true}
 
bool pc_dead_ {true}
 
bool inversor_dead_ {true}
 
bool res_dead_ {true}
 
bool emergency_signal_ {false}
 
bool ts_on_ {false}
 
double radio_quality_ {0}
 
unsigned dc_voltage_ {0}
 

Detailed Description

Definition at line 57 of file systemDiagnostics.hpp.

Member Function Documentation

◆ has_any_component_timed_out()

bool FailureDetection::has_any_component_timed_out ( )
inline

Definition at line 75 of file systemDiagnostics.hpp.

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

Member Data Documentation

◆ dc_voltage_

unsigned FailureDetection::dc_voltage_ {0}

Definition at line 73 of file systemDiagnostics.hpp.

◆ dc_voltage_drop_timestamp_

Metro FailureDetection::dc_voltage_drop_timestamp_ {DC_VOLTAGE_TIMEOUT}

Definition at line 62 of file systemDiagnostics.hpp.

◆ dc_voltage_hold_timestamp_

Metro FailureDetection::dc_voltage_hold_timestamp_
Initial value:
{
constexpr int DC_VOLTAGE_HOLD

Definition at line 64 of file systemDiagnostics.hpp.

◆ emergency_signal_

bool FailureDetection::emergency_signal_ {false}

Definition at line 70 of file systemDiagnostics.hpp.

◆ inversor_alive_timestamp_

Metro FailureDetection::inversor_alive_timestamp_ {COMPONENT_TIMESTAMP_TIMEOUT}

Definition at line 60 of file systemDiagnostics.hpp.

◆ inversor_dead_

bool FailureDetection::inversor_dead_ {true}

Definition at line 68 of file systemDiagnostics.hpp.

◆ pc_alive_timestamp_

Metro FailureDetection::pc_alive_timestamp_ {COMPONENT_TIMESTAMP_TIMEOUT}

Definition at line 58 of file systemDiagnostics.hpp.

◆ pc_dead_

bool FailureDetection::pc_dead_ {true}

Definition at line 67 of file systemDiagnostics.hpp.

◆ radio_quality_

double FailureDetection::radio_quality_ {0}

Definition at line 72 of file systemDiagnostics.hpp.

◆ res_dead_

bool FailureDetection::res_dead_ {true}

Definition at line 69 of file systemDiagnostics.hpp.

◆ res_signal_loss_timestamp_

Metro FailureDetection::res_signal_loss_timestamp_ {RES_TIMESTAMP_TIMEOUT}

Definition at line 61 of file systemDiagnostics.hpp.

◆ steer_alive_timestamp_

Metro FailureDetection::steer_alive_timestamp_ {COMPONENT_TIMESTAMP_TIMEOUT}

Definition at line 59 of file systemDiagnostics.hpp.

◆ steer_dead_

bool FailureDetection::steer_dead_ {true}

Definition at line 66 of file systemDiagnostics.hpp.

◆ ts_on_

bool FailureDetection::ts_on_ {false}

Definition at line 71 of file systemDiagnostics.hpp.


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