mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 01:01:35 +08:00
Merge pull request #811 from PX4/mavlink_sys_status_fix
mavlink: publish SYS_STATUS at constant rate
This commit is contained in:
@@ -262,7 +262,7 @@ protected:
|
|||||||
|
|
||||||
void send(const hrt_abstime t)
|
void send(const hrt_abstime t)
|
||||||
{
|
{
|
||||||
if (status_sub->update(t)) {
|
status_sub->update(t);
|
||||||
mavlink_msg_sys_status_send(_channel,
|
mavlink_msg_sys_status_send(_channel,
|
||||||
status->onboard_control_sensors_present,
|
status->onboard_control_sensors_present,
|
||||||
status->onboard_control_sensors_enabled,
|
status->onboard_control_sensors_enabled,
|
||||||
@@ -278,7 +278,6 @@ protected:
|
|||||||
status->errors_count3,
|
status->errors_count3,
|
||||||
status->errors_count4);
|
status->errors_count4);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user