[Gta04-owner] Which distri

Lukas Maerdian luk at slyon.de
Tue Sep 22 16:32:50 CEST 2015


Am 22.09.2015 um 09:19 schrieb Hermann Schwärzler:
> Hi Christ,
> 
> On 09/22/2015 08:42 AM, Christ van Willegen wrote:
>> On Mon, Sep 21, 2015 at 10:27 PM, Lukas Maerdian <luk at slyon.de> wrote:
>>> I've integrated the air pressure sensor into Replicant just recently:
>>> http://git.goldelico.com/?p=gta04-replicant-device.git;a=commit;h=47ca3dceb0a9f2d4106faad429a9e41f9dfd5a27
>>
>> Nice work!
>>
>> I took a look, in bmp085.c it says:
>>
>>  171 float bmp085_convert(int value)
>>  172 {
>>  173         return value / 100.0f; //we need hPa, BMP085 delivers Pa
>>  174 }
>>
>> It looks like (since you divide by 100.f...) that the reading is in
>> hPa (SI prefix h == 10^2) and you convert to Pa. Or do I read the
>> comment wrong?
> 
> Yes you are reading that wrong. For a pressure of 1 bar the BMP085
> delivers 100000 Pascal which gets converted to 1000 hecto-Pascal (aka
> millibar) by this function.

That's the way it is. And Android is expecting a value in the unit of
hPa, so the formula should be correct.

Best,
  Lukas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20150922/4fc4ff01/attachment.asc>


More information about the Gta04-owner mailing list