Skip to content

Commit

Permalink
Use 10ft as deco step size in imperial units in profile
Browse files Browse the repository at this point in the history
The calculation of the deco steps shown in the profile
infobox is somewhat independent of the planner. When
set to imperial units, the distance between deco stops
should be 10ft rather than 3m as 15m is only 49ft.

Signed-off-by: Robert C. Helling <[email protected]>
  • Loading branch information
atdotde authored and dirkhh committed May 6, 2022
1 parent bdeeba4 commit 34b61ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ static void calculate_ndl_tts(struct deco_state *ds, const struct dive *dive, st
const int ascent_s_per_deco_step = 1;
/* how long time steps in deco calculations? */
const int time_stepsize = 60;
const int deco_stepsize = 3000;
const int deco_stepsize = M_OR_FT(3, 10);
/* at what depth is the current deco-step? */
int next_stop = ROUND_UP(deco_allowed_depth(
tissue_tolerance_calc(ds, dive, depth_to_bar(entry->depth, dive), in_planner),
Expand Down

0 comments on commit 34b61ad

Please sign in to comment.