|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <Config.hpp>
Public Member Functions | |
| uint8_t | slot () const |
| Elodin slot: board_id % 10, with 0 mapping to 10. | |
Public Attributes | |
| std::string | section |
| std::string | type |
| std::string | ip |
| int | board_id = -1 |
| bool | enabled = true |
| int | num_actuators = 0 |
| uint16_t | send_port = 5005 |
| uint16_t | listen_port = 5005 |
| int | enable_serial_printing = 0 |
| int | voltage_reference = 0 |
| bool | necessary_for_abort = false |
| bool | designated_survivor = false |
| std::vector< int > | active_connectors |
| Connector ids this board samples — the ONLY statement of which channels exist. | |
| std::string | pt_type |
| double | adc_ref_voltage = 2.5 |
| bool | has_hp_pt_keys = false |
| double | hp_pt_full_scale_psi = 5000.0 |
| double | hp_pt_sense_resistor_ohms = 120.0 |
Definition at line 222 of file Config.hpp.
|
inline |
Elodin slot: board_id % 10, with 0 mapping to 10.
Definition at line 257 of file Config.hpp.
References board_id.
| std::vector<int> fsw::config::BoardConfig::active_connectors |
Connector ids this board samples — the ONLY statement of which channels exist.
These are identifiers, not a range: {1, 3, 5, 7} is ordinary, and getAdcChannel() maps each id to hardware, so an id above the count is normal. It goes on the wire verbatim as SensorConfigPacket's N x uint8_t sensor_id, and the packet's num_sensors byte is simply N — the firmware reads it as active_count and loops over the ids (see LC_Hotfire collect_chunk_impl).
There used to be a separate config-only num_sensors that meant "expand to 1..N when this list is empty". Nothing on the wire or in firmware carried that meaning, and having both let a board declare {1, 2, 6} beside num_sensors = 4, which no layer defined. Empty now means no channels, which is what it reads like.
Definition at line 247 of file Config.hpp.
Referenced by board_simulator.SimulatedBoard::_send_self_test(), and board_simulator.SimulatedBoard::_send_sensor_data().
| double fsw::config::BoardConfig::adc_ref_voltage = 2.5 |
Definition at line 251 of file Config.hpp.
| int fsw::config::BoardConfig::board_id = -1 |
Definition at line 226 of file Config.hpp.
Referenced by board_simulator.SimulatedBoard::_generate_data(), board_simulator.SimulatedBoard::_send_heartbeat(), and slot().
| bool fsw::config::BoardConfig::designated_survivor = false |
Definition at line 234 of file Config.hpp.
| int fsw::config::BoardConfig::enable_serial_printing = 0 |
Definition at line 231 of file Config.hpp.
| bool fsw::config::BoardConfig::enabled = true |
Definition at line 227 of file Config.hpp.
Referenced by engine.pipeline.stability.chug.Regulator::modelled().
| bool fsw::config::BoardConfig::has_hp_pt_keys = false |
Definition at line 252 of file Config.hpp.
| double fsw::config::BoardConfig::hp_pt_full_scale_psi = 5000.0 |
Definition at line 253 of file Config.hpp.
Referenced by board_simulator.SimulatedBoard::_generate_data().
| double fsw::config::BoardConfig::hp_pt_sense_resistor_ohms = 120.0 |
Definition at line 254 of file Config.hpp.
Referenced by board_simulator.SimulatedBoard::_generate_data().
| std::string fsw::config::BoardConfig::ip |
Definition at line 225 of file Config.hpp.
Referenced by board_simulator.SimulatedBoard::start().
| uint16_t fsw::config::BoardConfig::listen_port = 5005 |
Definition at line 230 of file Config.hpp.
Referenced by board_simulator.SimulatedBoard::start().
| bool fsw::config::BoardConfig::necessary_for_abort = false |
Definition at line 233 of file Config.hpp.
| int fsw::config::BoardConfig::num_actuators = 0 |
Definition at line 228 of file Config.hpp.
| std::string fsw::config::BoardConfig::pt_type |
Definition at line 250 of file Config.hpp.
| std::string fsw::config::BoardConfig::section |
Definition at line 223 of file Config.hpp.
| uint16_t fsw::config::BoardConfig::send_port = 5005 |
Definition at line 229 of file Config.hpp.
| std::string fsw::config::BoardConfig::type |
Definition at line 224 of file Config.hpp.
Referenced by feedtwin.pid.document.PidNode::is_annotation(), feedtwin.pid.document.PidNode::is_inline(), feedtwin.pid.document.PidNode::is_instrument(), feedtwin.pid.document.PidNode::is_source(), feedtwin.model.catalog.Part::to_dict(), and feedtwin.model.component.ComponentInstance::to_dict().
| int fsw::config::BoardConfig::voltage_reference = 0 |
Definition at line 232 of file Config.hpp.