mirror of https://github.com/ArduPilot/ardupilot
Rover: define and send FIRMWARE_VERSION
This commit is contained in:
parent
dd3df029ef
commit
081694f557
|
@ -1026,7 +1026,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
|
||||
case MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES: {
|
||||
if (is_equal(packet.param1,1.0f)) {
|
||||
rover.gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
||||
rover.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION);
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
}
|
||||
break;
|
||||
|
@ -1268,7 +1268,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
#endif
|
||||
|
||||
case MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST:
|
||||
rover.gcs[chan-MAVLINK_COMM_0].send_autopilot_version();
|
||||
rover.gcs[chan-MAVLINK_COMM_0].send_autopilot_version(FIRMWARE_VERSION);
|
||||
break;
|
||||
|
||||
} // end switch
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define _ROVER_H_
|
||||
|
||||
#define THISFIRMWARE "ArduRover v2.51-beta"
|
||||
#define FIRMWARE_VERSION 2,51,0,FIRMWARE_VERSION_TYPE_BETA
|
||||
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
|
|
Loading…
Reference in New Issue