mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use boyle_compensation in profile
otherwise VPM-B planned profiles seem to violate the ceiling. This needs the first_stop_pressure to be available also in the profile, so I made it global in planner.c Important lesson: If you want to use deco_allowed_depth on a tissue_tolerance that comes from a VPM-B planned dive, you have to call boyles_law() before add_segment()! Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2a50731139
commit
0bb65a17cb
4 changed files with 17 additions and 9 deletions
2
dive.h
2
dive.h
|
@ -801,7 +801,7 @@ extern double restore_deco_state(char *data);
|
|||
extern void nuclear_regeneration(double time);
|
||||
extern void vpmb_start_gradient();
|
||||
extern void vpmb_next_gradient(double deco_time, double surface_pressure);
|
||||
extern void boyles_law(double first_stop_pressure, double next_stop_pressure);
|
||||
extern void boyles_law(double next_stop_pressure);
|
||||
|
||||
/* this should be converted to use our types */
|
||||
struct divedatapoint {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue