|
|
|
@ -820,7 +820,7 @@ void MAVLinkSimulationWaypointPlanner::mavlink_handler (const mavlink_message_t*
@@ -820,7 +820,7 @@ void MAVLinkSimulationWaypointPlanner::mavlink_handler (const mavlink_message_t*
|
|
|
|
|
mavlink_msg_action_decode(msg, &action); |
|
|
|
|
if(action.target == systemid) { |
|
|
|
|
if (verbose) qDebug("Waypoint: received message with action %d\n", action.action); |
|
|
|
|
switch (action.action) { |
|
|
|
|
// switch (action.action) {
|
|
|
|
|
// case MAV_ACTION_LAUNCH:
|
|
|
|
|
// if (verbose) std::cerr << "Launch received" << std::endl;
|
|
|
|
|
// current_active_wp_id = 0;
|
|
|
|
@ -847,10 +847,10 @@ void MAVLinkSimulationWaypointPlanner::mavlink_handler (const mavlink_message_t*
@@ -847,10 +847,10 @@ void MAVLinkSimulationWaypointPlanner::mavlink_handler (const mavlink_message_t*
|
|
|
|
|
// default:
|
|
|
|
|
// if (verbose) std::cerr << "Unknown action received with id " << action.action << ", no action taken" << std::endl;
|
|
|
|
|
// break;
|
|
|
|
|
} |
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
case MAVLINK_MSG_ID_WAYPOINT_ACK: { |
|
|
|
|
mavlink_waypoint_ack_t wpa; |
|
|
|
|