Swift AI GPS Backfill Tool for MacDive

General MacDive discussion, updates, etc.
otherguy
Posts: 12
Joined: Tue May 19, 2020 3:09 pm
Dive Computer: Suunto D4i Novo

Re: Swift AI GPS Backfill Tool for MacDive

Post by otherguy »

I just got the Swift AI GPS but for me, MacDive doesn't even see the air pressure. Both the chart, and the starting / ending pressure fields are empty. The script works great for GPS backfill though!

It seems the pressure data is stored in a different slot in the raw binary blob:

Dive Raw mode Raw pressure location Decoded raw pressure MacDive DB result
━━━━━━ ━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━
256 AI_ON, log v14 normal sample tank slot 1 3092 → 1344 psi imported air
────── ──────────────────── ────────────────────────────────── ────────────────────── ───────────────────
257 AI_ON, log v14 normal sample tank slot 1 3192 → 1616 psi imported air
────── ──────────────────── ────────────────────────────────── ────────────────────── ───────────────────
262 AI_ON_GPS, log v17 0xE1 extended sample tank slot 2 2846 → 1114 psi 0 → 0
────── ──────────────────── ────────────────────────────────── ────────────────────── ───────────────────
263 AI_ON_GPS, log v17 0xE1 extended sample tank slot 2 2998 → 1582 psi 0 → 0
otherguy
Posts: 12
Joined: Tue May 19, 2020 3:09 pm
Dive Computer: Suunto D4i Novo

Re: Swift AI GPS Backfill Tool for MacDive

Post by otherguy »

I decided to fix that and submitted a Pull Request here: https://github.com/rbollar/macdive-swiftai-gps/pull/1
Bollar
Posts: 56
Joined: Mon Nov 20, 2017 10:29 am
Dive Computer: Shearwater Perdix 2

Re: Swift AI GPS Backfill Tool for MacDive

Post by Bollar »

Merged. Thanks!
Post Reply