mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Perform deco calculation for plan
This uses a bunch of default values that we eventually need to get from the UI, but it's a first step towards a working dive planner. This exhibits some graphical artifacts when running, but other than that appears to be mostly correct. Things go far worse if I enable the changing of the scale once the deco makes the dive longer than the displayed time window. Things quickly spiral out of control. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
596095389b
commit
ef0272f5ef
3 changed files with 45 additions and 21 deletions
|
|
@ -605,7 +605,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, c
|
|||
int gaschangenr;
|
||||
int *stoplevels;
|
||||
|
||||
set_gf(plangflow, plangfhigh);
|
||||
set_gf(diveplan->gflow, diveplan->gfhigh);
|
||||
if (!diveplan->surface_pressure)
|
||||
diveplan->surface_pressure = SURFACE_PRESSURE;
|
||||
if (*divep)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue