px4io: servorail_status -> px4io_status and log all flags

This commit is contained in:
Daniel Agar
2020-07-21 09:56:13 -04:00
parent 962b865301
commit 81f57bccb6
7 changed files with 174 additions and 150 deletions
+1 -1
View File
@@ -101,6 +101,7 @@ set(msg_files
power_button_state.msg
power_monitor.msg
pwm_input.msg
px4io_status.msg
qshell_req.msg
qshell_retval.msg
radio_status.msg
@@ -120,7 +121,6 @@ set(msg_files
sensor_mag.msg
sensor_preflight.msg
sensor_selection.msg
servorail_status.msg
subsystem_info.msg
system_power.msg
task_stack_info.msg
+54
View File
@@ -0,0 +1,54 @@
uint64 timestamp # time since system start (microseconds)
uint16 free_memory_bytes
float32 voltage_v # Servo rail voltage in volts
float32 rssi_v # RSSI pin voltage in volts
# PX4IO status flags (PX4IO_P_STATUS_FLAGS)
bool status_outputs_armed
bool status_override
bool status_rc_ok
bool status_rc_ppm
bool status_rc_dsm
bool status_rc_sbus
bool status_fmu_ok
bool status_raw_pwm
bool status_mixer_ok
bool status_arm_sync
bool status_init_ok
bool status_failsafe
bool status_safety_off
bool status_fmu_initialized
bool status_rc_st24
bool status_rc_sumd
# PX4IO alarms (PX4IO_P_STATUS_ALARMS)
bool alarm_vbatt_low
bool alarm_temperature
bool alarm_servo_current
bool alarm_acc_current
bool alarm_fmu_lost
bool alarm_rc_lost
bool alarm_pwm_error
bool alarm_vservo_fault
# PX4IO arming (PX4IO_P_SETUP_ARMING)
bool arming_io_arm_ok
bool arming_fmu_armed
bool arming_fmu_prearmed
bool arming_manual_override_ok
bool arming_failsafe_custom
bool arming_inair_restart_ok
bool arming_always_pwm_enable
bool arming_rc_handling_disabled
bool arming_lockdown
bool arming_force_failsafe
bool arming_termination_failsafe
bool arming_override_immediate
int16[8] actuators
uint16[8] servos
uint16[18] raw_inputs
-3
View File
@@ -1,3 +0,0 @@
uint64 timestamp # time since system start (microseconds)
float32 voltage_v # Servo rail voltage in volts
float32 rssi_v # RSSI pin voltage in volts
+1 -1
View File
@@ -163,7 +163,7 @@ rtps:
- msg: sensor_selection
id: 70
send: true
- msg: servorail_status
- msg: px4io_status
id: 71
- msg: subsystem_info
id: 72