Rover: define and send FIRMWARE_VERSION

This commit is contained in:
squilter 2015-08-21 10:36:30 -07:00 committed by Randy Mackay
parent dd3df029ef
commit 081694f557
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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>