Implement the rbt sample

The name of the RBT (Remaining Bottom Time) sample was taken from the
Uwatec dive computers. The actual definition depends on the dive
computer, but it usually corresponds to the air time remaining (with or
without some additional factors taken into account).
This commit is contained in:
Jef Driesen 2021-01-01 21:25:58 +01:00
parent e592c7e7b7
commit 6c9a758648

View File

@ -551,7 +551,8 @@ static void sample_gastime(struct sample_data *info, short gastime)
if (gastime < 0)
return;
// Hmm. We have no good way to report airtime remaining
sample.rbt = gastime / 60;
if (info->callback) info->callback (DC_SAMPLE_RBT, sample, info->userdata);
}
/*