mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
invalidate start and destination when resetting the vertices
- the reference for the projection may change which will cause start and destination positions to be invalid - the position of the destination in the graph node may not be correct anymore Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -206,6 +206,11 @@ bool GeofenceAvoidancePlanner::update_vertices(GeofenceInterface &geofence, floa
|
||||
}
|
||||
|
||||
update_distances_between_vertices(geofence);
|
||||
|
||||
// invalidate start and end to make sure they are refreshed
|
||||
_start_healthy = false;
|
||||
_destination_healthy = false;
|
||||
|
||||
perf_end(_setup_perf);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user