GCS_Mavlink: send power status from all boards

This commit is contained in:
Staroselskii Georgii 2015-11-17 19:12:44 +03:00 committed by Lucas De Marchi
parent 672acdc8ef
commit 6172ed078e

View File

@ -193,12 +193,10 @@ void GCS_MAVLINK::send_meminfo(void)
// report power supply status
void GCS_MAVLINK::send_power_status(void)
{
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
mavlink_msg_power_status_send(chan,
hal.analogin->board_voltage() * 1000,
hal.analogin->servorail_voltage() * 1000,
hal.analogin->power_status_flags());
#endif
}
// report AHRS2 state