Skip to content

Inconsistent depth calculation when parsing sample data from Dive Gear X #91

@chenhao0520

Description

@chenhao0520

Description:
When parsing sample data from the "Dive Gear X" dive computer (using dc_device_foreach and related functions), the calculated depth values show inconsistent jumps in certain depth ranges (e.g., between 15-20 meters). This does not occur with other dive computers like Shearwater or Suunto.

Steps to Reproduce:

Connect "Dive Gear X" dive computer via libdc.
Download a dive log with samples spanning 10-25 meters depth.
Observe the parsed depth values in the sample list (e.g., using dc_sample_get_depth).
Note sudden depth spikes/drops without corresponding sensor data.
Expected Behavior:
Depth values should increase/decrease smoothly based on the sensor readings, without unnatural jumps.

Actual Behavior:
Depth values intermittently jump by ±2-3 meters in the 15-20m range, even when the dive profile is stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions