STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
sequencer::ScriptLoadContext Struct Reference

Everything load_dynamic_states needs that it cannot get from Config alone. More...

#include <ScriptStates.hpp>

Collaboration diagram for sequencer::ScriptLoadContext:
[legend]

Public Attributes

std::string config_dir
 Directory holding config.toml; scripts resolve to <config_dir>/scripts/<script_file>.
const StateMachine * state_machine = nullptr
 Transition matrix, already loaded.
State fire_state = State::UNKNOWN
 The [fire] state, so a script cannot be attached to the burn.
std::function< bool(const std::string &state_name)> has_actuator_column
 True when the named state has a column in state_machine_actuators.csv.

Detailed Description

Everything load_dynamic_states needs that it cannot get from Config alone.

Definition at line 70 of file ScriptStates.hpp.

Member Data Documentation

◆ config_dir

std::string sequencer::ScriptLoadContext::config_dir

Directory holding config.toml; scripts resolve to <config_dir>/scripts/<script_file>.

Definition at line 72 of file ScriptStates.hpp.

Referenced by sequencer::SequencerService::applyConfig(), and sequencer::load_dynamic_states().

◆ fire_state

State sequencer::ScriptLoadContext::fire_state = State::UNKNOWN

The [fire] state, so a script cannot be attached to the burn.

Definition at line 76 of file ScriptStates.hpp.

Referenced by sequencer::SequencerService::applyConfig(), and sequencer::load_dynamic_states().

◆ has_actuator_column

std::function<bool(const std::string& state_name)> sequencer::ScriptLoadContext::has_actuator_column

True when the named state has a column in state_machine_actuators.csv.

A dynamic state must have one: the column is the defined baseline the script layers onto, and without it entry would leave every unmentioned valve wherever the previous state put it.

Definition at line 80 of file ScriptStates.hpp.

Referenced by sequencer::SequencerService::applyConfig(), and sequencer::load_dynamic_states().

◆ state_machine

const StateMachine* sequencer::ScriptLoadContext::state_machine = nullptr

Transition matrix, already loaded.

Definition at line 74 of file ScriptStates.hpp.

Referenced by sequencer::SequencerService::applyConfig(), and sequencer::load_dynamic_states().


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