mstrens / oXs_on_RP2040

version of openXsensor to be used on raspberry pi pico RP2040 (more protocols, more functionalities)
92 stars 23 forks source link

Fligt Test #66

Closed Klippeneck closed 1 year ago

Klippeneck commented 1 year ago

Hello mstrens, over the weekend I was able to flight test the OXS Rp2040 sensor with MS5611 and GPS BN220. Function so far i. O., but the telemetry values of altitude, vario and GPS altitude are not correct. with another sensor. The values of the comparison sensor I have compared with a Jeti Vario 2, agree very well. The OXS baro height is about a factor of 1.25 too low. At -10m altitude both sensors are the same and diverge again below -10m.(See log). The GPS altitude oscillates between 81 and 98m. The climb values of the vario also differ strongly. Probably there is a bug in the altitude calculation. Greetings Jürgen

Screenshot 2023-03-19 12 24 13

mstrens commented 1 year ago

For GPS, I saw the bug. The values from oXs where 10 X to small (I divided by 1000 instead of by 100 when I filled the data to be sent). This is fixed in version 1.8.7.

I checked the formula to calculate baro altitude and I do not see immediately the bug. Could you make a capture of the 3 altitudes with this new version. With the right GPS altitude, it will be possible to have a better comparison. Could you also provide a graph of the 2 Vspeed (the one from oXs and the one from jeti vario) in the same flight.

Klippeneck commented 1 year ago

I can test GPS tomorrow with SW 1.87. Vspeed from Jeti Vario and OXS I have attached. Screenshot 2023-03-19 12 25 47

mstrens commented 1 year ago

Based on the graph, Vspeed of oXs and Jeti seems me quite well correlated. It seems that oXS provides higher value but this is not abnormal because I also note that it reacts faster. So there is less damping. It a choice I made. It is possible to change the sensitivity of oXs (in config file) if you want.

Klippeneck commented 1 year ago

Hello mstrens, attached are two logs, the first shows the takeoff, the second the whole flight. The GPS altitude is shown as altitude above sea level, so I have adjusted the scaling in the diagram accordingly. accordingly. In the altitude there are again differences between OXS and Jeti Vario. It is strange that at an altitude of -10m no deviations are to be seen.

Screenshot 2023-03-20 15 53 11 Screenshot 2023-03-20 15 03 44

Klippeneck commented 1 year ago

Wrong diagram, now correct Screenshot 2023-03-20 15 57 50

Klippeneck commented 1 year ago

And now with GPS altitude, OXS altitude and Jeti Vario altitude Screenshot 2023-03-20 16 02 52

mstrens commented 1 year ago

It is true that a difference of result of 50m on an altitude change of 300m is abnormal. Still I do not see a bug in the code. Pressure and altitude are calculated using the formula's that I find in all documentations. It would be good to try with a different MS5611 (and/or with another type of sensor) to see if the difference still exists. Perhaps you have a sensor where the calibration parameters stored in memory are inaccurate?

Klippeneck commented 1 year ago

Hello, I already had the assumption, especially since the sensors are from China. I will change the MS5611 and report again. Thanks a lot .

mstrens commented 1 year ago

I presume this can be closed