STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
comms::messages::sensor Namespace Reference

Typedefs

using CalibratedPTMessage
 Calibrated Pressure Transducer message for Elodin.
using CalibratedTCMessage
 Calibrated Thermocouple message for Elodin.
using CalibratedRTDMessage
 Calibrated RTD message for Elodin.
using CalibratedLCMessage
 Calibrated Load Cell message for Elodin.
using CalibratedACTMessage
 Calibrated Actuator current-sense message for Elodin.
using CalibratedValvePositionMessage
 Calibrated ball valve position message for Elodin.
using EnvironmentalMessage = comms::CommsMessage<uint64_t, float, uint32_t, float, uint32_t>
using RawPTMessage
 Raw Pressure Transducer sample message for Elodin.
using RawTCMessage
 Raw Thermocouple sample message for Elodin CRITICAL: Includes padding bytes to ensure uint32_t fields are 4-byte aligned.
using RawRTDMessage
 Raw RTD sample message for Elodin CRITICAL: Includes padding bytes to ensure uint32_t fields are 4-byte aligned.
using RawLCMessage
 Raw Load Cell sample message for Elodin CRITICAL: Includes padding bytes to ensure uint32_t fields are 4-byte aligned.
using ActuatorStateMessage
 Actuator state (0=closed, 1=open) from current-sense ADC threshold.
using T7RawMessage
 One LabJack T7 analog-input sample, published by t7_bridge.
using T7CalibratedMessage
 One T7 channel in engineering units, published by t7_bridge beside T7RawMessage.

Typedef Documentation

◆ ActuatorStateMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
uint8_t
>
CommsMessage - Template-based message serialization.

Actuator state (0=closed, 1=open) from current-sense ADC threshold.

Packet ID [0x31, ch].

Definition at line 75 of file SensorMessages.hpp.

◆ CalibratedACTMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
float,
uint32_t,
uint8_t
>

Calibrated Actuator current-sense message for Elodin.

12-bit ADC, 3.3V ref, V-to-I transfer = 1:1. Layout: uint64_t(8) + uint8_t(1) + pad[3](3) + float(4) + uint32_t(4) + uint8_t(1) = 21 bytes

Definition at line 60 of file CalibratedSensorMessages.hpp.

◆ CalibratedLCMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
float,
uint32_t,
uint8_t
>

Calibrated Load Cell message for Elodin.

Layout: uint64_t(8) + uint8_t(1) + pad[3](3) + float(4) + uint32_t(4) + uint8_t(1) = 21 bytes

Definition at line 46 of file CalibratedSensorMessages.hpp.

◆ CalibratedPTMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
float,
uint32_t,
uint8_t
>

Calibrated Pressure Transducer message for Elodin.

Contains both raw ADC counts and calibrated pressure in PSI. This message is published alongside RawPTMessage for calibrated sensors.

Layout: uint64_t (8) + uint8_t (1) + padding[3] (3) + float (4) + uint32_t (4) + uint8_t (1) = 21 bytes

Definition at line 22 of file CalibratedPTMessage.hpp.

◆ CalibratedRTDMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
float,
uint32_t,
uint8_t
>

Calibrated RTD message for Elodin.

Layout: uint64_t(8) + uint8_t(1) + pad[3](3) + float(4) + uint32_t(4) + uint8_t(1) = 21 bytes

Definition at line 33 of file CalibratedSensorMessages.hpp.

◆ CalibratedTCMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
float,
uint32_t,
uint8_t
>

Calibrated Thermocouple message for Elodin.

Layout: uint64_t(8) + uint8_t(1) + pad[3](3) + float(4) + uint32_t(4) + uint8_t(1) = 21 bytes

Definition at line 20 of file CalibratedSensorMessages.hpp.

◆ CalibratedValvePositionMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
float,
uint32_t,
uint8_t
>

Calibrated ball valve position message for Elodin.

4-20 mA position across a 100 ohm shunt, 12-bit ADC (see calibration/ValvePosition.hpp). Same 21-byte layout as the other calibrated messages.

Definition at line 74 of file CalibratedSensorMessages.hpp.

◆ EnvironmentalMessage

using comms::messages::sensor::EnvironmentalMessage = comms::CommsMessage<uint64_t, float, uint32_t, float, uint32_t>

Definition at line 8 of file EnvironmentalMessage.hpp.

◆ RawLCMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
uint32_t,
uint32_t,
uint8_t
>

Raw Load Cell sample message for Elodin CRITICAL: Includes padding bytes to ensure uint32_t fields are 4-byte aligned.

Definition at line 64 of file SensorMessages.hpp.

◆ RawPTMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
uint32_t,
uint32_t,
uint8_t
>

Raw Pressure Transducer sample message for Elodin.

Simplified schema focused on raw sensor data. Calibrated values will be added in a separate table later.

CRITICAL: Includes padding bytes to ensure uint32_t fields are 4-byte aligned Layout: uint64_t (8) + uint8_t (1) + padding[3] (3) + uint32_t (4) + uint32_t (4) + uint8_t (1) = 21 bytes

Definition at line 22 of file SensorMessages.hpp.

◆ RawRTDMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
uint32_t,
uint32_t,
uint8_t
>

Raw RTD sample message for Elodin CRITICAL: Includes padding bytes to ensure uint32_t fields are 4-byte aligned.

Definition at line 50 of file SensorMessages.hpp.

◆ RawTCMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
uint32_t,
uint32_t,
uint8_t
>

Raw Thermocouple sample message for Elodin CRITICAL: Includes padding bytes to ensure uint32_t fields are 4-byte aligned.

Definition at line 36 of file SensorMessages.hpp.

◆ T7CalibratedMessage

Initial value:

One T7 channel in engineering units, published by t7_bridge beside T7RawMessage.

The ESP32 calibrated layout (CalibratedPTMessage et al.): u64 timestamp_ns | u8 ain | u8[3] pad | f32 value (psi / C / kg) | i32 raw_uv (the volts, in microvolts) | u8 cal_status (1).

Definition at line 36 of file T7Messages.hpp.

◆ T7RawMessage

Initial value:
CommsMessage<uint64_t,
uint8_t,
std::array<uint8_t, 3>,
float,
uint32_t,
uint8_t
>

One LabJack T7 analog-input sample, published by t7_bridge.

Same 21-byte shape as the other sensor messages, but the value is volts as a float. LJM returns calibrated volts (LabJack's per-device calibration is applied on the device side of the library), so there are no ADC counts to carry.

Layout: u64 timestamp_ns | u8 ain | u8[3] pad | f32 volts | u32 sample_ts_ms | u8 status

Definition at line 22 of file T7Messages.hpp.