From eb0d421bfc6f8d8e6e6fff5114d121bc2bc47d5d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 26 Sep 2023 16:25:02 +1000 Subject: [PATCH] Blimp: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int --- Blimp/GCS_Mavlink.cpp | 2 +- Blimp/GCS_Mavlink.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Blimp/GCS_Mavlink.cpp b/Blimp/GCS_Mavlink.cpp index dfcab4b6f5..512d9f6446 100644 --- a/Blimp/GCS_Mavlink.cpp +++ b/Blimp/GCS_Mavlink.cpp @@ -529,7 +529,7 @@ void GCS_MAVLINK_Blimp::handleMessage(const mavlink_message_t &msg) } // end handle mavlink -MAV_RESULT GCS_MAVLINK_Blimp::handle_flight_termination(const mavlink_command_long_t &packet) +MAV_RESULT GCS_MAVLINK_Blimp::handle_flight_termination(const mavlink_command_int_t &packet) { MAV_RESULT result = MAV_RESULT_FAILED; if (packet.param1 > 0.5f) { diff --git a/Blimp/GCS_Mavlink.h b/Blimp/GCS_Mavlink.h index 7ff116581c..ed406ac0f9 100644 --- a/Blimp/GCS_Mavlink.h +++ b/Blimp/GCS_Mavlink.h @@ -13,7 +13,7 @@ protected: uint32_t telem_delay() const override; - MAV_RESULT handle_flight_termination(const mavlink_command_long_t &packet) override; + MAV_RESULT handle_flight_termination(const mavlink_command_int_t &packet) override; uint8_t sysid_my_gcs() const override; bool sysid_enforce() const override;