Browse Source

Plane: write voltage/current much more frequently

mission-4.1.18
Andrew Tridgell 9 years ago
parent
commit
93ac82e1f6
  1. 3
      ArduPlane/ArduPlane.cpp
  2. 4
      ArduPlane/sensors.cpp

3
ArduPlane/ArduPlane.cpp

@ -307,9 +307,6 @@ void Plane::update_aux(void) @@ -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);

4
ArduPlane/sensors.cpp

@ -128,6 +128,10 @@ void Plane::read_battery(void) @@ -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…
Cancel
Save