From a1e79f4677f884460b48d0b9c292752df36a211e Mon Sep 17 00:00:00 2001 From: Mariano Lizarraga Date: Mon, 6 Sep 2010 16:48:14 -0500 Subject: [PATCH] Minor comments on the WP Manager --- src/uas/UASWaypointManager.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uas/UASWaypointManager.cc b/src/uas/UASWaypointManager.cc index e7ccdee..336b390 100644 --- a/src/uas/UASWaypointManager.cc +++ b/src/uas/UASWaypointManager.cc @@ -451,6 +451,7 @@ void UASWaypointManager::writeWaypoints() current_partner_compid = MAV_COMP_ID_WAYPOINTPLANNER; //clear local buffer + //TODO: Why not replace with waypoint_buffer.clear() ? while(!waypoint_buffer.empty()) { delete waypoint_buffer.back(); @@ -473,6 +474,7 @@ void UASWaypointManager::writeWaypoints() cur_d->orbit_direction = 0; cur_d->param1 = cur_s->getOrbit(); cur_d->param2 = cur_s->getHoldTime(); + // TODO: Replace this value depending on the type of waypoint cur_d->type = 1; //FIXME: we only use local waypoints at the moment cur_d->seq = i; // don't read out the sequence number of the waypoint class cur_d->x = cur_s->getX();