mirror of https://github.com/ArduPilot/ardupilot
Plane: write voltage/current much more frequently
This commit is contained in:
parent
e428abde42
commit
93ac82e1f6
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue