open-remora

Open Remora, a free secondary dive computer for Apple Watch Ultra
git clone https://git.schurger.org/open-remora.git
Log | Files | Refs | README | LICENSE

DESIGN.md (2260B)


      1 # Open Rémora: a secondary dive computer for Apple Watch Ultra
      2 
      3 The remora travels with a bigger fish without replacing it: Open Rémora is a **secondary**,
      4 non-certified dive computer, to be worn alongside a primary one. Sister project: Open Mérou
      5 (free app for the Oceanic+ housing). No Bluetooth link between the two underwater (2.4 GHz is absorbed);
      6 possibly a merge at the surface (profile from the watch + timestamped photos from the housing).
      7 
      8 ## Sensors and Apple entitlements
      9 
     10 - `CMWaterSubmersionManager` (Core Motion): pressure, depth, water temperature, submersion.
     11 - **Shallow depth** entitlement (6 m): freely available, for development and the pool.
     12 - **Full depth** entitlement (40 m): on request to Apple (form), may be refused;
     13   apply with a working 6 m app. Automatic launch on submersion seems to require the full one.
     14 - References: <https://developer.apple.com/documentation/coremotion/accessing-submersion-data>,
     15   existing apps Oceanic+, Mares, DiveCore.
     16 
     17 ## Engine (`RemoraDeco` in the RemoraKit repository, pure Swift, tested on chunga with `make test-deco`)
     18 
     19 - Bühlmann ZHL-16C, nitrogen only (air and nitrox; no helium: 40 m at most), Baker gradient
     20   factors, **GF 30/70 by default**. Haldane equation (constant depth) and Schreiner equation (between
     21   two samples, exact for a linear change).
     22 - Input: measured absolute pressure (bar); depth is only a display value (EN 13319 water by default).
     23 - Outputs: no-decompression limit, ceiling, stops every 3 m (last one at 3 m), time to surface at 9 m/min,
     24   3 min safety stop at 5 m after going below 10 m, ascent rate smoothed over 5 s (warning at 10, alarm at 12 m/min),
     25   ppO2 (1.4 / 1.6), off-gassing between dives.
     26 - Reference values (salt water, diver saturated at the surface, dropped at depth):
     27   no-decompression limit GF 100/100 = 59 min at 18 m, 16.4 min at 30 m; GF 30/70 = 28.7 and 8.4 min.
     28 
     29 ## To do
     30 
     31 1. Validate the engine against Subsurface on a set of profiles (differences in stops and duration).
     32 2. CNS and OTU for nitrox.
     33 3. watchOS app (XcodeGen, like Open Mérou): dive workout session, screens readable with gloves,
     34    Action button and Digital Crown, haptic alarms, logbook, UDDF export to Subsurface.
     35 4. Trials at 6 m, then apply for the 40 m entitlement.