Browse Source

Sub: Remove unneeded GCS rally override

master
Michael du Breuil 6 years ago committed by Andrew Tridgell
parent
commit
b4c5041aad
  1. 9
      ArduSub/GCS_Mavlink.cpp
  2. 2
      ArduSub/GCS_Mavlink.h

9
ArduSub/GCS_Mavlink.cpp

@ -1163,15 +1163,6 @@ void Sub::mavlink_delay_cb() @@ -1163,15 +1163,6 @@ void Sub::mavlink_delay_cb()
DataFlash.EnableWrites(true);
}
AP_Rally *GCS_MAVLINK_Sub::get_rally() const
{
#if AC_RALLY == ENABLED
return &sub.rally;
#else
return nullptr;
#endif
}
MAV_RESULT GCS_MAVLINK_Sub::handle_flight_termination(const mavlink_command_long_t &packet) {
if (packet.param1 > 0.5f) {
sub.init_disarm_motors();

2
ArduSub/GCS_Mavlink.h

@ -12,8 +12,6 @@ protected: @@ -12,8 +12,6 @@ protected:
return 0;
};
AP_Rally *get_rally() const override;
MAV_RESULT handle_flight_termination(const mavlink_command_long_t &packet) override;
uint8_t sysid_my_gcs() const override;

Loading…
Cancel
Save