Formula Student Electronics & Software
The code for the embedded software
|
The ASState class manages and transitions between different states of the vehicle system. More...
#include <stateLogic.hpp>
Public Member Functions | |
ASState (SystemData *system_data, Communicator *communicator, DigitalSender *digital_sender) | |
Constructor for the ASState class. | |
void | calculateState () |
Calculates the state of the vehicle. | |
Public Attributes | |
CheckupManager | _checkupManager |
CheckupManager object for handling various checkup operations. | |
State | state {AS_OFF} |
Current state of the vehicle system, initialized to OFF. | |
The ASState class manages and transitions between different states of the vehicle system.
The ASState class uses the CheckupManager to perform system checks and determine the appropriate state transitions based on the vehicle's status and operational conditions. It interacts with hardware components via the DigitalSender and Communicator interfaces to update the system state and handle transitions.
Definition at line 14 of file stateLogic.hpp.
|
inlineexplicit |
Constructor for the ASState class.
system_data | Pointer to the SystemData object containing system status and sensor information. |
communicator | Pointer to the Communicator object. |
digital_sender | Pointer to the DigitalSender object. |
Definition at line 29 of file stateLogic.hpp.
|
inline |
Calculates the state of the vehicle.
Definition at line 39 of file stateLogic.hpp.
CheckupManager ASState::_checkupManager |
CheckupManager object for handling various checkup operations.
Definition at line 20 of file stateLogic.hpp.
Current state of the vehicle system, initialized to OFF.
Definition at line 21 of file stateLogic.hpp.