mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:43:24 +00:00
Revert "Pref. to ascent to next stop only when stop is below ceiling"
This reverts commit a6ed36fb73
.
This commit is contained in:
parent
39794d3478
commit
f2b883865c
3 changed files with 0 additions and 7 deletions
|
@ -879,11 +879,6 @@ bool trial_ascent(int trial_depth, int stoplevel, int avg_depth, int bottom_time
|
||||||
bool clear_to_ascend = true;
|
bool clear_to_ascend = true;
|
||||||
char *trial_cache = NULL;
|
char *trial_cache = NULL;
|
||||||
|
|
||||||
// Don't do a trail ascent but check if the ceiling is above the next stoplevel.
|
|
||||||
// This does not sound like a relevant question but it seems the original VPM-B implementation does that.
|
|
||||||
if (prefs.check_ceiling_before_ascent)
|
|
||||||
return (deco_allowed_depth(tissue_tolerance, surface_pressure, &displayed_dive, 1) <= stoplevel);
|
|
||||||
|
|
||||||
cache_deco_state(tissue_tolerance, &trial_cache);
|
cache_deco_state(tissue_tolerance, &trial_cache);
|
||||||
while (trial_depth > stoplevel) {
|
while (trial_depth > stoplevel) {
|
||||||
int deltad = ascent_velocity(trial_depth, avg_depth, bottom_time) * TIMESTEP;
|
int deltad = ascent_velocity(trial_depth, avg_depth, bottom_time) * TIMESTEP;
|
||||||
|
|
1
pref.h
1
pref.h
|
@ -97,7 +97,6 @@ struct preferences {
|
||||||
bool display_transitions;
|
bool display_transitions;
|
||||||
bool safetystop;
|
bool safetystop;
|
||||||
bool switch_at_req_stop;
|
bool switch_at_req_stop;
|
||||||
bool check_ceiling_before_ascent;
|
|
||||||
int reserve_gas;
|
int reserve_gas;
|
||||||
int min_switch_duration; // seconds
|
int min_switch_duration; // seconds
|
||||||
int bottomsac;
|
int bottomsac;
|
||||||
|
|
|
@ -48,7 +48,6 @@ struct preferences default_prefs = {
|
||||||
.doo2breaks = false,
|
.doo2breaks = false,
|
||||||
.drop_stone_mode = false,
|
.drop_stone_mode = false,
|
||||||
.switch_at_req_stop = false,
|
.switch_at_req_stop = false,
|
||||||
.check_ceiling_before_ascent = false,
|
|
||||||
.min_switch_duration = 60,
|
.min_switch_duration = 60,
|
||||||
.last_stop = false,
|
.last_stop = false,
|
||||||
.verbatim_plan = false,
|
.verbatim_plan = false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue