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 _______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface