STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
PTMessage.hpp File Reference
#include <array>
#include <cstdint>
#include "CommsMessage.hpp"
Include dependency graph for PTMessage.hpp:

Go to the source code of this file.

Typedefs

using PTMessage
 Pressure Transducer Message - Raw Rec18 format from ESP32.
using PTChamberMessage = PTMessage
using PTFuelInletMessage = PTMessage
using PTOxInletMessage = PTMessage
using PTCoolantInletMessage = PTMessage
using PTIgniterMessage = PTMessage

Enumerations

enum class  PTLocation {
  PRESSURANT_TANK = 0 , KERO_INLET = 1 , KERO_OUTLET = 2 , LOX_INLET = 3 ,
  LOX_OUTLET = 4 , INJECTOR = 5 , CHAMBER_WALL_1 = 6 , CHAMBER_WALL_2 = 7 ,
  NOZZLE_EXIT = 8 , UNKNOWN = 9
}
 PT Location enumeration for engine system. More...

Functions

static void set_pt_measurement (PTMessage &message, uint64_t timestamp_ns, uint8_t sensor_id, double raw_voltage_v, PTLocation location)
static std::string getPTLocationName (PTLocation location)
static PTMessage generateTestMessagePT ()

Typedef Documentation

◆ PTChamberMessage

Definition at line 82 of file PTMessage.hpp.

◆ PTCoolantInletMessage

Definition at line 85 of file PTMessage.hpp.

◆ PTFuelInletMessage

Definition at line 83 of file PTMessage.hpp.

◆ PTIgniterMessage

Definition at line 86 of file PTMessage.hpp.

◆ PTMessage

using PTMessage
Initial value:
uint8_t,
uint16_t,
uint32_t,
uint32_t,
uint32_t,
uint32_t>
CommsMessage - Template-based message serialization.

Pressure Transducer Message - Raw Rec18 format from ESP32.

Matches the Rec18 struct from Arduino exactly

Definition at line 30 of file PTMessage.hpp.

◆ PTOxInletMessage

Definition at line 84 of file PTMessage.hpp.

Enumeration Type Documentation

◆ PTLocation

enum class PTLocation
strong

PT Location enumeration for engine system.

Enumerator
PRESSURANT_TANK 
KERO_INLET 
KERO_OUTLET 
LOX_INLET 
LOX_OUTLET 
INJECTOR 
CHAMBER_WALL_1 
CHAMBER_WALL_2 
NOZZLE_EXIT 
UNKNOWN 

Definition at line 12 of file PTMessage.hpp.

Function Documentation

◆ generateTestMessagePT()

PTMessage generateTestMessagePT ( )
static

Definition at line 75 of file PTMessage.hpp.

References PRESSURANT_TANK, and set_pt_measurement().

◆ getPTLocationName()

std::string getPTLocationName ( PTLocation location)
static

◆ set_pt_measurement()

void set_pt_measurement ( PTMessage & message,
uint64_t timestamp_ns,
uint8_t sensor_id,
double raw_voltage_v,
PTLocation location )
static

Definition at line 39 of file PTMessage.hpp.

Referenced by generateTestMessagePT().