Skip to content
Snippets Groups Projects
Commit b38975a5 authored by Michael Day's avatar Michael Day
Browse files

Copter: Support NAV_GUIDED_ENABLE commands outside of a Mission.

Good for companion computers that want to enable NAV_GUIDED.
parent 0d71c4e4
No related tags found
No related merge requests found
......@@ -1172,6 +1172,15 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg)
result = MAV_RESULT_ACCEPTED;
break;
#if NAV_GUIDED == ENABLED
case MAV_CMD_NAV_GUIDED_ENABLE: {
AP_Mission::Mission_Command cmd = {0};
cmd.p1 = packet.param1;
copter.do_nav_guided_enable(cmd);
break;
}
#endif
#if CAMERA == ENABLED
case MAV_CMD_DO_DIGICAM_CONFIGURE:
copter.camera.configure(packet.param1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment