summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-26 19:29:25 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-26 15:42:43 -0700
commit4e3793c05310009878a407d107b4ef330710c5f3 (patch)
treeb7a66a6aff48507b4a4571ce0c3e2e948d1011ba /planner.c
parentd9abf885c2ef7861ca85a52eec3c01e0c04861d5 (diff)
downloadsubsurface-4e3793c05310009878a407d107b4ef330710c5f3.tar.gz
Paint the dive red if the user is breaking ceiling on the planner.
This patch paints the dive red if the user is breaking ceiling on the planner - it's quite fast, it analizes the depth over the max(tissue_1 .. tissue_16) and changes the color of the profile. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/planner.c b/planner.c
index f08acd5e8..50673b322 100644
--- a/planner.c
+++ b/planner.c
@@ -678,8 +678,6 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, b
/* We will break out when we hit the surface */
do {
/* Ascend to next stop depth */
- if (deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000.0, dive, 1) > depth)
- fprintf(stderr, "user provided way point above ceiling\n");
int deltad = ascend_velocity(depth, avg_depth, bottom_time) * TIMESTEP;
if (ascend_velocity(depth, avg_depth, bottom_time) != last_ascend_rate) {
plan_add_segment(diveplan, clock - previous_point_time, depth, o2, he, po2, false);