Possible to integrate GY87 in OpenXSensor ?

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
Yogilours
Posts: 22
Joined: Tue Nov 21, 2017 6:49 pm
Country: -

Possible to integrate GY87 in OpenXSensor ?

Post by Yogilours »

Hello,

I just got a bunch of GY87 sensors... With the BMP180 onboard do you think it could be integrated to the project ?

Thanks for all !

Guillaume

mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by mstrens »

I just put a new version on github in order to support GY87.
Yogilours
Posts: 22
Joined: Tue Nov 21, 2017 6:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by Yogilours »

Hello !

Thank you you have all my respect ! Once I will code as well and as fast as you... :lol:


Guillaume
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by mstrens »

It was a very quick change.
I did not test it.
If there is a bug, let me know.
Yogilours
Posts: 22
Joined: Tue Nov 21, 2017 6:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by Yogilours »

Hello,

For me there is no bug appart from something strange. When I use a MS5611 I have 0m of relative altitude on startup. If I use a BMP180 or the GY87 I get around -20m offset.
I tried to see in the CPP file but the altitude calculation coefficients seem to be the same for MS5611 and BMP180.

I tried the BMP180 and the GY87 with the adafruit library Adafruit_BMP085.h and I have the good measure : 0m on startup. Any idea ?

Guillaume

mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by mstrens »

Could you try to change one line in file oXs_bmp180.cpp.

There is:
if ((D1 > 0) & (millis() > 1000) ) { // If D1 has been read in a previous loop and if sensor is started since more than 1 sec, then calculate pressure etc...

Can you try:
if ((D1 > 0) & (millis() > 3000) ) { // If D1 has been read in a previous loop and if sensor is started since more than 1 sec, then calculate pressure etc...
So changing 1000 by 3000.
Perhaps it will help.
Yogilours
Posts: 22
Joined: Tue Nov 21, 2017 6:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by Yogilours »

Hello,

Job done ! No more drift on startup, I think you can integrate it.

Merci !

Guillaume
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by mstrens »

It is not clear for me your concern about the drift on the speed.
Is it the vertical speed (calculated by BMP180) or an airspeed (based on a differential sensor).
For the vertical speed there is normally no reset function. But even if the first value is not zero, the values should trend to zero quite fast (if oXs does not move).

For the airspeed, there is a reset function but there should be no relation at all between airspeed and use of a BMP180.
So airspeed drift could exist even when no BMP180 is used.

Can you explain a little more.
Yogilours
Posts: 22
Joined: Tue Nov 21, 2017 6:49 pm
Country: -

Re: Possible to integrate GY87 in OpenXSensor ?

Post by Yogilours »

Hello,
My mistake I think there is a bad contact on my breadboard. I made better contacts and it's much better. That's why I edited my post ;)

Thanks for all. I should get my Gy86 (the Gy87 was a mistake from the seller) and I'll try it also. For information we are a bunch of modelers who want some telemetry and I'll do it for our little group. We tried to start from zero and found your project !

Guillaume

Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”