Update PX4 msg folder

This commit is contained in:
judsonupchurch 2025-06-14 14:53:53 -05:00
parent e82bbf20de
commit d167d08e97
7 changed files with 40 additions and 1 deletions

View File

@ -222,7 +222,12 @@ set(msg_files
Wind.msg
YawEstimatorStatus.msg
SimulinkCustomMessage.msg
PlcHoldingRegisters.msg
PlcDiscreteInputs.msg
PlcInputRegisters.msg
PlcCoilsRead.msg
PlcCoilsWrite.msg
PlcHoldingRegistersRead.msg
PlcHoldingRegistersWrite.msg
)
list(SORT msg_files)

View File

@ -0,0 +1,5 @@
uint64 timestamp # time since system start (microseconds)
uint16 num_coils = 128 # How many coils can be stored in coil_array
bool[128] coil_array_read # Array of bools that are read from the PLC

View File

@ -0,0 +1,7 @@
uint64 timestamp # time since system start (microseconds)
uint16 num_coils = 128 # How many coils can be stored in coil_array
bool[128] coil_array_write # Array of bools that are used for writing to the PLC
bool written # Has the coil_array_write been written yet to the PLC

View File

@ -0,0 +1,5 @@
uint64 timestamp # time since system start (microseconds)
uint16 num_inputs = 128 # How many inputs can be stored in input_array
bool[128] input_array # Array of bools

View File

@ -0,0 +1,5 @@
uint64 timestamp # time since system start (microseconds)
uint16 num_registers = 128 # How many registers can be stored in register_array_read
uint16[128] register_array_read # Array of unsigned, 16 bit registers that are read from the PLC

View File

@ -0,0 +1,7 @@
uint64 timestamp # time since system start (microseconds)
uint16 num_registers = 128 # How many registers can be stored in register_array_write
uint16[128] register_array_write # Array of unsigned, 16 bit registers that are used for writing to the PLC
bool written # Has the register_array_write been written yet to the PLC

View File

@ -0,0 +1,5 @@
uint64 timestamp # time since system start (microseconds)
uint16 num_registers = 128 # How many registers can be stored in register_array
uint16[128] register_array # Array of unsigned, 16 bit registers