Rover: move handling of fence point handling up

This commit is contained in:
Peter Barker 2019-02-04 11:16:44 +11:00 committed by Randy Mackay
parent be841d5d0a
commit 8244158969

View File

@ -1090,12 +1090,6 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg)
break;
}
// send or receive fence points with GCS
case MAVLINK_MSG_ID_FENCE_POINT: // MAV ID: 160
case MAVLINK_MSG_ID_FENCE_FETCH_POINT:
rover.g2.fence.handle_msg(*this, msg);
break;
case MAVLINK_MSG_ID_DISTANCE_SENSOR:
rover.rangefinder.handle_msg(msg);
rover.g2.proximity.handle_msg(msg);