Rover: base SYS_STATUS load average on variable loop rate

This commit is contained in:
Peter Barker 2017-07-30 15:09:16 +10:00 committed by Francisco Ferreira
parent b445313bf1
commit d44c7f0886

View File

@ -90,7 +90,7 @@ void Rover::send_extended_status1(mavlink_channel_t chan)
control_sensors_present,
control_sensors_enabled,
control_sensors_health,
static_cast<uint16_t>(scheduler.load_average(20000) * 1000),
static_cast<uint16_t>(scheduler.load_average() * 1000),
battery.voltage() * 1000, // mV
battery_current, // in 10mA units
battery_remaining, // in %