MainDriver

Includes the main executables to run the state machine

Running Executables

Remember, it is important to build in the main folder (see primary README). To run an executable, do the following

cd /path/to/FullscalePrime/build/MainDriver
sudo ./<EXECUTABLE_NAME>

realDisplayTest

Runs the payload from the USLI 2023 competition.

Functions

std::string getStateName(StateName stateType)

Get the state name as a string.

Parameters:

stateType – The state name

Returns:

string representing the state name

void runFullStateMachine(Root &root, State *initial_state)

Runs the entire state machine.

Parameters:
  • rootRoot containing variables and methods shared between all states

  • initial_state – Starting state for state machine

int main()

Main method to run the full payload.

Returns:

exit status

displayTest

Runs a mini payload with no perception and verifies all the motors work.

Functions

std::string getStateName(StateName stateType)

Get the state name as a string.

Parameters:

stateType – The state name

Returns:

string representing the state name

void runFullStateMachine(Root &root, State &initial_state)

Runs the entire state machine.

Parameters:
  • rootRoot containing variables and methods shared between all states

  • initial_state – Starting state for state machine

int main()

Main method to run mini payload demo.

Returns:

exit status