diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index 0d02f41d9e..b9ac00f9fb 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -1,6 +1,8 @@ /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- #define THISFIRMWARE "APM:Copter V3.4-dev" +#define FIRMWARE_VERSION 3,4,0,FIRMWARE_VERSION_TYPE_DEV + /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 4ef8b97e09..d9f102678b 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1442,7 +1442,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) case MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES: { if (is_equal(packet.param1,1.0f)) { - copter.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(); + copter.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION); result = MAV_RESULT_ACCEPTED; } break; @@ -1781,7 +1781,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) #endif // AC_RALLY == ENABLED case MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST: - copter.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(); + copter.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION); break; case MAVLINK_MSG_ID_LED_CONTROL: @@ -1911,4 +1911,3 @@ void Copter::gcs_send_text_fmt(const prog_char_t *fmt, ...) } } } -