mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Store a table of deco stops in planner
... in addition to struct diveplan which combines all kinds of information Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
456e2cec89
commit
e6545a7b0f
4 changed files with 40 additions and 19 deletions
|
|
@ -905,12 +905,15 @@ struct divedatapoint *create_dp(int time_incr, int depth, int cylinderid, int po
|
|||
#if DEBUG_PLAN
|
||||
void dump_plan(struct diveplan *diveplan);
|
||||
#endif
|
||||
bool plan(struct diveplan *diveplan, struct dive *dive, int timestep, struct deco_state **cached_datap, bool is_planner, bool show_disclaimer);
|
||||
struct decostop {
|
||||
int depth;
|
||||
int time;
|
||||
};
|
||||
bool plan(struct diveplan *diveplan, struct dive *dive, int timestep, struct decostop *decostoptable, struct deco_state **cached_datap, bool is_planner, bool show_disclaimer);
|
||||
void calc_crushing_pressure(double pressure);
|
||||
void vpmb_start_gradient();
|
||||
void clear_vpmb_state();
|
||||
|
||||
|
||||
void delete_single_dive(int idx);
|
||||
|
||||
struct event *get_next_event(struct event *event, const char *name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue