Skip to content

Commit

Permalink
Fix issue with waypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPontius committed Jan 18, 2024
1 parent 7211e16 commit 5d22f21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WeatherRoutingTool/algorithms/isobased.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ def move_boat_direct(self, wt: WeatherCond, boat: Boat, constraint_list: Constra
delta_time[i] = delta_time_last_step[i]
delta_fuel[i] = delta_fuel_last_step[i]
dist[i] = dist_last_step[i]
else:
delta_time = delta_time_last_step
delta_fuel = delta_fuel_last_step
dist = dist_last_step

is_constrained = self.check_constraints(move, constraint_list)

self.update_position(move, is_constrained, dist)
Expand Down

0 comments on commit 5d22f21

Please sign in to comment.