msg: extend field definition in msg/esc_report (arming & failure states)

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli
2020-04-03 09:16:43 +02:00
committed by Beat Küng
parent 4e091a369d
commit dc29a994b7
6 changed files with 20 additions and 0 deletions
+2
View File
@@ -611,6 +611,8 @@ MK::task_main()
esc.timestamp = hrt_absolute_time();
esc.esc_count = (uint8_t) _num_outputs;
esc.esc_connectiontype = esc_status_s::ESC_CONNECTION_TYPE_I2C;
esc.esc_online_flags = (1 << esc.esc_count) - 1;
esc.esc_armed_flags = (1 << esc.esc_count) - 1;
for (unsigned int i = 0; i < _num_outputs; i++) {
esc.esc[i].esc_address = (uint8_t) BLCTRL_BASE_ADDR + i;