mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Tracker: define and send FIRMWARE_VERSION
This commit is contained in:
parent
081694f557
commit
23a7db8ee8
@ -691,7 +691,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)) {
|
||||||
tracker.gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
tracker.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION);
|
||||||
result = MAV_RESULT_ACCEPTED;
|
result = MAV_RESULT_ACCEPTED;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -856,7 +856,7 @@ mission_failed:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
case MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST:
|
case MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST:
|
||||||
tracker.gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
tracker.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
} // end switch
|
} // end switch
|
||||||
@ -975,4 +975,3 @@ void Tracker::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 "AntennaTracker V0.7.2"
|
#define THISFIRMWARE "AntennaTracker V0.7.2"
|
||||||
|
#define FIRMWARE_VERSION 0,7,2,FIRMWARE_VERSION_TYPE_DEV
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Lead developers: Matthew Ridley and Andrew Tridgell
|
Lead developers: Matthew Ridley and Andrew Tridgell
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user