Browse Source

Plane: remove PX4-specific code that disables overrides on reboot

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

5
ArduPlane/GCS_Mavlink.cpp

@ -765,11 +765,6 @@ void GCS_MAVLINK_Plane::packetReceived(const mavlink_status_t &status, @@ -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)
{

1
ArduPlane/GCS_Mavlink.h

@ -22,7 +22,6 @@ protected: @@ -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;

Loading…
Cancel
Save