mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fixing SP handling in planner, adding event
Fixing the SP change event and introducing a bailout scenario. I decided not to use a event showing SP=0.0 nor using a gaschange event as is in fact there is no gas change related to bailing out itself. If there is also a gaschange for the event it will be displayed anyway. Signed-off-by: Jan Schubert <Jan.Schubert@GMX.li> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
057253c4eb
commit
59cfa5c427
2 changed files with 10 additions and 5 deletions
|
|
@ -218,9 +218,10 @@ struct dive *create_dive_from_plan(struct diveplan *diveplan)
|
|||
he = oldhe;
|
||||
}
|
||||
|
||||
/* Check for SetPoint change */
|
||||
if (oldpo2 != po2) {
|
||||
if (lasttime)
|
||||
add_event(dc, lasttime, 20, 0, po2/1000, "SP change"); // SAMPLE_EVENT_PO2
|
||||
add_event(dc, lasttime, 20, 0, po2, "SP change"); // SAMPLE_EVENT_PO2
|
||||
oldpo2 = po2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue