qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] hw/sensor: Add lsm303dlhc magnetometer device


From: Peter Maydell
Subject: Re: [PATCH v2] hw/sensor: Add lsm303dlhc magnetometer device
Date: Mon, 20 Sep 2021 18:19:07 +0100

On Mon, 20 Sept 2021 at 17:49, Kevin Townsend <kevin.townsend@linaro.org> wrote:
>
> On Mon, 20 Sept 2021 at 17:14, Peter Maydell <peter.maydell@linaro.org> wrote:
>>
>> That's OK -- our "int" properties are int64_t. So we could easily
>> fit something like 10000 == 1.0000 uT, in case we might want
>> the extra precision in future. That would be 1,000,000 == 1 G
>> (assuming I haven't messed up my arithmetic ;-))
>>
> Is 0.001 uT OK to use as a starting point? I think that's enough for most
> sensors I'm aware of.

The thing is that the starting point is also the finishing point:
once we have released something that uses a particular set of
units, we can't change it in future without breaking backwards
compatibility. So we need to get it right now.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]