Plane: write voltage/current much more frequently

This commit is contained in:
Andrew Tridgell 2016-02-29 21:24:33 +11:00
parent e428abde42
commit 93ac82e1f6
2 changed files with 4 additions and 3 deletions

View File

@ -307,9 +307,6 @@ void Plane::update_aux(void)
void Plane::one_second_loop()
{
if (should_log(MASK_LOG_CURRENT))
Log_Write_Current();
// send a heartbeat
gcs_send_message(MSG_HEARTBEAT);

View File

@ -128,6 +128,10 @@ void Plane::read_battery(void)
battery.exhausted(g.fs_batt_voltage, g.fs_batt_mah)) {
low_battery_event();
}
if (should_log(MASK_LOG_CURRENT)) {
Log_Write_Current();
}
}
// read the receiver RSSI as an 8 bit number for MAVLink