summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-31 11:34:11 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-31 11:34:11 -0800
commitcbd7a5df95cc157cf7502c68f7c8d98fef2820eb (patch)
treef22ecddb796a6a2d7bd2a71dd079c91efdaa880a
parent1d39df092253916474b927b3df665d4b1b2245fa (diff)
downloadsubsurface-cbd7a5df95cc157cf7502c68f7c8d98fef2820eb.tar.gz
Information overlay: include the moving mean depth
Apparently this is useful for some tech divers. We urgently need an option to turn off the graph and this text, though, as I am guessing that this is just distracting and annoying to 90+% of our users. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--profile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index 74d49363a..efc6de453 100644
--- a/profile.c
+++ b/profile.c
@@ -1199,6 +1199,11 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
put_format(b, translate("gettextFromC", "heartbeat: %d\n"), entry->heartbeat);
if (entry->bearing)
put_format(b, translate("gettextFromC", "bearing: %d\n"), entry->bearing);
+ if (entry->running_sum) {
+ depthvalue = get_depth_units(entry->running_sum / 1000, NULL, &depth_unit);
+ put_format(b, translate("gettextFromC", "mean depth to here %.1f%s\n"), depthvalue, depth_unit);
+ }
+
strip_mb(b);
}