Skip to content

Commit

Permalink
Sailboat: In Irons : revert remove const from Sailboat::use_indirect_…
Browse files Browse the repository at this point in the history
…route
  • Loading branch information
kwikius committed Mar 1, 2024
1 parent 1771b03 commit 03ce951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rover/sailboat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ bool Sailboat::tacking() const

// returns true if sailboat should take a indirect navigation route to go upwind
// desired_heading should be in centi-degrees
bool Sailboat::use_indirect_route(float desired_heading_cd)
bool Sailboat::use_indirect_route(float desired_heading_cd) const
{

if (!tack_enabled()) {
Expand Down
2 changes: 1 addition & 1 deletion Rover/sailboat.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Sailboat
bool tacking() const;

// returns true if sailboat should take a indirect navigation route to go upwind
bool use_indirect_route(float desired_heading_cd);
bool use_indirect_route(float desired_heading_cd) const;

// calculate the heading to sail on if we cant go upwind
float calc_heading(float desired_heading_cd);
Expand Down

0 comments on commit 03ce951

Please sign in to comment.