mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
Copter: define and send FIRMWARE_VERSION
This commit is contained in:
parent
8553301cdd
commit
dd3df029ef
@ -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 "APM:Copter V3.3-rc9"
|
#define THISFIRMWARE "APM:Copter V3.3-rc9"
|
||||||
|
#define FIRMWARE_VERSION 3,3,0,FIRMWARE_VERSION_TYPE_RC
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1442,7 +1442,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)) {
|
||||||
copter.gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
copter.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION);
|
||||||
result = MAV_RESULT_ACCEPTED;
|
result = MAV_RESULT_ACCEPTED;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1781,7 +1781,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
#endif // AC_RALLY == ENABLED
|
#endif // AC_RALLY == ENABLED
|
||||||
|
|
||||||
case MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST:
|
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;
|
break;
|
||||||
|
|
||||||
case MAVLINK_MSG_ID_LED_CONTROL:
|
case MAVLINK_MSG_ID_LED_CONTROL:
|
||||||
@ -1911,4 +1911,3 @@ void Copter::gcs_send_text_fmt(const prog_char_t *fmt, ...)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user