send autopilot version message on startup and on request

This commit is contained in:
Roman Bapst
2015-05-23 09:59:46 +02:00
committed by Lorenz Meier
parent 4dd343e2de
commit 0eeaa83b3d
3 changed files with 18 additions and 1 deletions
+3 -1
View File
@@ -278,7 +278,9 @@ MavlinkReceiver::handle_message_command_long(mavlink_message_t *msg)
/* terminate other threads and this thread */
_mavlink->_task_should_exit = true;
} else if (cmd_mavlink.command == MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES) {
/* send autopilot version message */
_mavlink->send_autopilot_capabilites();
} else {
if (msg->sysid == mavlink_system.sysid && msg->compid == mavlink_system.compid) {