> Date: Sat, 3 Nov 2018 18:12:35 +0100
> From: Landry Breuil <lan...@openbsd.org>
> 
> > Well, altitude really is just a vertical distance, so SENSOR_DISTANCE
> > is the right one.  You obviously should convert the altitude from
> > meters into millimeters.  If you think it would be more appropriate to
> > display distances in meters, we (you?) can adjust sysctl(8).
> 
> Agreed, from what i understand there's a difference between 'the unit in
> which the value is stored internally in the int64_t' and the 'the unit
> used when displaying the value'.

Correct.  The internal unit is chosen to provide a sensible range and
precision given that it is stored into an int64_t.  How it gets
displayed is entirely up to the code that interprets the value.

Reply via email to