Haptic Controller
Loading...
Searching...
No Matches
SystemInfo Struct Reference

Struct to hold important system information. More...

Public Member Functions

 SystemInfo ()=default
 
 SystemInfo (CommsController< ODRV_CAN0, ODRV_CAN1 > &cc)
 

Public Attributes

bool teensy_heartbeat_timeout = false
 
bool & odrive0_heartbeat_timeout
 
bool & odrive1_heartbeat_timeout
 
bool estop_enabled = false
 
bool relays_open = false
 
bool deadman_switch_pressed = false
 
ControllerState mirror_teensy_state = ControllerState::INITIALIZING
 

Detailed Description

Struct to hold important system information.

Definition at line 85 of file main.cpp.

Constructor & Destructor Documentation

◆ SystemInfo() [1/2]

SystemInfo::SystemInfo ( )
default

◆ SystemInfo() [2/2]

SystemInfo::SystemInfo ( CommsController< ODRV_CAN0, ODRV_CAN1 > & cc)
inline

Definition at line 90 of file main.cpp.

Member Data Documentation

◆ deadman_switch_pressed

bool SystemInfo::deadman_switch_pressed = false

Definition at line 102 of file main.cpp.

Referenced by changeState(), and checkDeadman().

◆ estop_enabled

bool SystemInfo::estop_enabled = false

Definition at line 100 of file main.cpp.

Referenced by shouldError().

◆ mirror_teensy_state

ControllerState SystemInfo::mirror_teensy_state = ControllerState::INITIALIZING

Definition at line 103 of file main.cpp.

Referenced by changeState(), and updateSystemInfo().

◆ odrive0_heartbeat_timeout

bool& SystemInfo::odrive0_heartbeat_timeout

Definition at line 98 of file main.cpp.

Referenced by doState(), enterState(), ledUpdate(), and shouldError().

◆ odrive1_heartbeat_timeout

bool& SystemInfo::odrive1_heartbeat_timeout

Definition at line 99 of file main.cpp.

Referenced by doState(), enterState(), ledUpdate(), and shouldError().

◆ relays_open

bool SystemInfo::relays_open = false

Definition at line 101 of file main.cpp.

Referenced by shouldError().

◆ teensy_heartbeat_timeout

bool SystemInfo::teensy_heartbeat_timeout = false

Definition at line 97 of file main.cpp.

Referenced by enterState(), ledUpdate(), shouldError(), and updateSystemInfo().


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