[PATCH] Visualisation of individual oxygen sensor data for CCR dives

Anton Lundin glance at acc.umu.se
Fri Apr 14 12:57:55 PDT 2017


On 13 April, 2017 - Jef Driesen wrote:

> On 2017-04-12 10:47, Anton Lundin wrote:
> >
> >The issue with current libdivecomputer DC_SAMPLE_PPO2 is that you cant
> >distinguish between ha "real" "voted" pO2 and the raw sensor value.
> >
> >I would like to see a option to export both, and be able to handle them
> >differently
> 
> We could introduce a new structure that carries a sensor index
> (similar to DC_SAMPLE_PRESSURE):
> 
> struct ppo2 {
>     unsigned int sensor;
>     double value;
> };
> 
> That way we can easily report multiple DC_SAMPLE_PPO2 values, each
> with a
> different sensor id. And for the voted/calculated ppO2, we can use
> some magic value, like:
> 
> #define DC_SENSOR_NONE 0xFFFFFFFF
> 
> (Just like we already have DC_GASMIX_UNKNOWN).

That would be great.

Another thing would be to expose the voting information. Seeing when the
sensor was voted out and the sensors performance after, is quite
relevant for trying to diagnose what happened.


//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list