From cfac25626b209ee12201a30524d421d6a49a7b58 Mon Sep 17 00:00:00 2001 From: Salvador Cuñat Date: Wed, 22 Jul 2015 17:02:33 +0200 Subject: Add support for RBT reported sample value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RBT (Remaining Bottom Time) is a value calculated on the fly by some air integrated divecomputers, for example Uwatec devices. This value is an estimation based in some heuristic around time function pressure gradients. This way, RBT would be the time a diver can spend at actual depth without running out of gas (taking account of ascent, deco, if required, and rock bottom gas reserve, if set). Older Uwatec devices just made the calculus and only stored alarm events if this time value reached zero, but modern devices store the value each sample, in minutes. It seems that Suunto Eon Steel is storing RBT values too, in seconds. Libdivecomputer has supported RBT for a while, but Subsurface just printed it to stdout and dropped it. This adds support for RBT value on subsurface sample structure and shows it in the profile's info box, right under TTS(calc), if selected, where these two values can be easily compared by humans. Signed-off-by: Salvador Cuñat Signed-off-by: Dirk Hohndel --- profile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'profile.h') diff --git a/profile.h b/profile.h index 36b8aa767..a6dbfcf5f 100644 --- a/profile.h +++ b/profile.h @@ -34,6 +34,7 @@ struct plot_data { int percentages[16]; int ndl; int tts; + int rbt; int stoptime; int stopdepth; int cns; -- cgit v1.2.3-70-g09d2