From 99a93112b45135f0c852e2f4b71f847f0c132152 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 18 Jan 2019 15:28:41 +1100 Subject: [PATCH] Plane: remove PX4-specific code that disables overrides on reboot --- ArduPlane/GCS_Mavlink.cpp | 5 ----- ArduPlane/GCS_Mavlink.h | 1 - 2 files changed, 6 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index bd1eb51e76..dc78fe90d0 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -765,11 +765,6 @@ void GCS_MAVLINK_Plane::packetReceived(const mavlink_status_t &status, GCS_MAVLINK::packetReceived(status, msg); } -bool GCS_MAVLINK_Plane::should_disable_overrides_on_reboot() const -{ - return (plane.quadplane.enable != 0); -} - MAV_RESULT GCS_MAVLINK_Plane::handle_command_int_packet(const mavlink_command_int_t &packet) { diff --git a/ArduPlane/GCS_Mavlink.h b/ArduPlane/GCS_Mavlink.h index a22ed71fe3..58170e4d0c 100644 --- a/ArduPlane/GCS_Mavlink.h +++ b/ArduPlane/GCS_Mavlink.h @@ -22,7 +22,6 @@ protected: bool sysid_enforce() const override; bool set_mode(uint8_t mode) override; - bool should_disable_overrides_on_reboot() const override; MAV_RESULT handle_command_preflight_calibration(const mavlink_command_long_t &packet) override; MAV_RESULT _handle_command_preflight_calibration(const mavlink_command_long_t &packet) override;