mirror of https://github.com/ArduPilot/ardupilot
Plane: define and send FIRMWARE_VERSION
This commit is contained in:
parent
c2bb073a3b
commit
74edf9cb1e
|
@ -1342,7 +1342,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||||
|
|
||||||
case MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES: {
|
case MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES: {
|
||||||
if (is_equal(packet.param1,1.0f)) {
|
if (is_equal(packet.param1,1.0f)) {
|
||||||
plane.gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
plane.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION);
|
||||||
result = MAV_RESULT_ACCEPTED;
|
result = MAV_RESULT_ACCEPTED;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1743,7 +1743,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST:
|
case MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST:
|
||||||
plane.gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
plane.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
} // end switch
|
} // end switch
|
||||||
|
@ -1895,4 +1895,3 @@ void Plane::gcs_retry_deferred(void)
|
||||||
{
|
{
|
||||||
gcs_send_message(MSG_RETRY_DEFERRED);
|
gcs_send_message(MSG_RETRY_DEFERRED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
#define THISFIRMWARE "ArduPlane V3.4.0beta1"
|
#define THISFIRMWARE "ArduPlane V3.4.0beta1"
|
||||||
|
#define FIRMWARE_VERSION 3,4,0,FIRMWARE_VERSION_TYPE_BETA
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Lead developer: Andrew Tridgell
|
Lead developer: Andrew Tridgell
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue