rgleason / weather_routing_pi

Weather Routing plugin for OpenCPN
GNU General Public License v3.0
11 stars 14 forks source link

Bug : Problem when manually adding a waypoint to a route built by WR. #140

Open Gilletarom opened 10 months ago

Gilletarom commented 10 months ago

Dave,

From Gilletarom, W10, WR 1.15.10

I saw that you numbered the waypoints. Good.

In principle, with WR, we build “ready-to-use” roads. But sometimes the user adds one or more waypoints manually. This is what I achieved by adding a single waypoint. After which, I reversed the route twice in a row, each time accepting that the waypoints were renumbered.

I observe that: The new waypoint is added to the list of waypoints.

BUT :

In my test, there should be :

2023-09-08 10_57_01-Actualités

2023-09-07 23_30_54-WXRoute_09-07-23_21-17_Dahouet_St-Cast

Gilletarom commented 9 months ago

We can even decide that the data calculated by WR for all the segments located after the two segments created by the introduction of a waypoint manually, must be forgotten.

The waypoint added manually is generally not added to the initial route and therefore, when navigating following the route, at the exit of these two segments, the time of passage to the first next waypoint is no longer respected, the weather taken into account is therefore likely to be different, and/or the currents, where there are any, change.

Therefore, all data previously calculated by WR must be verified and recalculated.

So, the entire end of the route must be recalculated.