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

The ASState class manages and transitions between different states of the vehicle system. More...

#include <stateLogic.hpp>

Collaboration diagram for ASState:
Collaboration graph

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ASState()

ASState::ASState ( SystemData system_data,
Communicator communicator,
DigitalSender digital_sender 
)
inlineexplicit

Constructor for the ASState class.

Parameters
system_dataPointer to the SystemData object containing system status and sensor information.
communicatorPointer to the Communicator object.
digital_senderPointer to the DigitalSender object.

Definition at line 29 of file stateLogic.hpp.

Member Function Documentation

◆ calculateState()

void ASState::calculateState ( )
inline

Calculates the state of the vehicle.

Definition at line 39 of file stateLogic.hpp.

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

Member Data Documentation

◆ _checkupManager

CheckupManager ASState::_checkupManager

CheckupManager object for handling various checkup operations.

Definition at line 20 of file stateLogic.hpp.

◆ state

State ASState::state {AS_OFF}

Current state of the vehicle system, initialized to OFF.

Definition at line 21 of file stateLogic.hpp.


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