Browse Source

Copter: move sending of send_pid_tuning up

mission-4.1.18
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
eed73749f9
  1. 5
      ArduCopter/GCS_Mavlink.cpp
  2. 2
      ArduCopter/GCS_Mavlink.h

5
ArduCopter/GCS_Mavlink.cpp

@ -268,11 +268,6 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id)
// unused // unused
break; break;
case MSG_PID_TUNING:
CHECK_PAYLOAD_SIZE(PID_TUNING);
send_pid_tuning();
break;
case MSG_ADSB_VEHICLE: case MSG_ADSB_VEHICLE:
#if ADSB_ENABLED == ENABLED #if ADSB_ENABLED == ENABLED
CHECK_PAYLOAD_SIZE(ADSB_VEHICLE); CHECK_PAYLOAD_SIZE(ADSB_VEHICLE);

2
ArduCopter/GCS_Mavlink.h

@ -64,6 +64,6 @@ private:
int16_t vfr_hud_throttle() const override; int16_t vfr_hud_throttle() const override;
float vfr_hud_alt() const override; float vfr_hud_alt() const override;
void send_pid_tuning(); void send_pid_tuning() override;
}; };

Loading…
Cancel
Save