STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::config::BoardConfig Struct Reference

#include <Config.hpp>

Collaboration diagram for fsw::config::BoardConfig:
[legend]

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

Detailed Description

Definition at line 222 of file Config.hpp.

Member Function Documentation

◆ slot()

uint8_t fsw::config::BoardConfig::slot ( ) const
inline

Elodin slot: board_id % 10, with 0 mapping to 10.

Definition at line 257 of file Config.hpp.

References board_id.

Member Data Documentation

◆ active_connectors

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().

◆ adc_ref_voltage

double fsw::config::BoardConfig::adc_ref_voltage = 2.5

Definition at line 251 of file Config.hpp.

◆ board_id

int fsw::config::BoardConfig::board_id = -1

◆ designated_survivor

bool fsw::config::BoardConfig::designated_survivor = false

Definition at line 234 of file Config.hpp.

◆ enable_serial_printing

int fsw::config::BoardConfig::enable_serial_printing = 0

Definition at line 231 of file Config.hpp.

◆ enabled

bool fsw::config::BoardConfig::enabled = true

Definition at line 227 of file Config.hpp.

Referenced by engine.pipeline.stability.chug.Regulator::modelled().

◆ has_hp_pt_keys

bool fsw::config::BoardConfig::has_hp_pt_keys = false

Definition at line 252 of file Config.hpp.

◆ hp_pt_full_scale_psi

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().

◆ hp_pt_sense_resistor_ohms

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().

◆ ip

std::string fsw::config::BoardConfig::ip

Definition at line 225 of file Config.hpp.

Referenced by board_simulator.SimulatedBoard::start().

◆ listen_port

uint16_t fsw::config::BoardConfig::listen_port = 5005

Definition at line 230 of file Config.hpp.

Referenced by board_simulator.SimulatedBoard::start().

◆ necessary_for_abort

bool fsw::config::BoardConfig::necessary_for_abort = false

Definition at line 233 of file Config.hpp.

◆ num_actuators

int fsw::config::BoardConfig::num_actuators = 0

Definition at line 228 of file Config.hpp.

◆ pt_type

std::string fsw::config::BoardConfig::pt_type

Definition at line 250 of file Config.hpp.

◆ section

std::string fsw::config::BoardConfig::section

Definition at line 223 of file Config.hpp.

◆ send_port

uint16_t fsw::config::BoardConfig::send_port = 5005

Definition at line 229 of file Config.hpp.

◆ type

◆ voltage_reference

int fsw::config::BoardConfig::voltage_reference = 0

Definition at line 232 of file Config.hpp.


The documentation for this struct was generated from the following file:
  • daq-server/diablo_server/lib/include/config/Config.hpp