mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
DLF import: Decode and import NDL and TTS
The units of these values are guessed, but these values makes they match up well with the values we calculate ourself. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5e56bbf2aa
commit
11542d84f7
1 changed files with 6 additions and 0 deletions
|
@ -2596,6 +2596,12 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
|
|||
// because we rather calculate ppo2 our selfs.
|
||||
if (cur_dc->dctype == CCR || cur_dc->dctype == PSCR)
|
||||
cur_sample->o2sensor[0].mbar = ((ptr[7] << 8) + ptr[6]) / 10;
|
||||
if (!ptr[8] && ptr[9])
|
||||
cur_sample->in_deco = true;
|
||||
// Guessed unit here.. looks good.
|
||||
cur_sample->ndl.seconds = ptr[8] * 60;
|
||||
// Guessed unit here.. looks good.
|
||||
cur_sample->tts.seconds = ((ptr[10] & 0x0F) << 4) + ptr[9] * 20;
|
||||
sample_end();
|
||||
break;
|
||||
case 1:
|
||||
|
|
Loading…
Add table
Reference in a new issue