mstrens / oXs_on_RP2040

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

Pitch and roll with decimal possible? #84

Closed Allerhopp closed 1 year ago

Allerhopp commented 1 year ago

It would be great to have a better resolution for pitch and roll using smartport. We want to measure angle of attack changes with a glider.

Allerhopp commented 1 year ago

I am not able to find the part of the code where pitch and roll are clipped to one byte. This is necessary for CRSF, but not for smartport DIY-sensors. Any hints please, where I can multiply pitch and roll with 100? That would fill my needs ...

mstrens commented 1 year ago

I just made a change to get 2 decimals in sport and fbus for roll and pitch. It is in test branch 2.5.9

Allerhopp commented 1 year ago

Thank you Michel for the fast response! I get now +/- 100, 200, 300 ..... tilting about 1, 2, or 3° - but no intermediate values and with decimals 0.00 I get +/- 1.00, 2.00, 3.00 Seems there is another piece of code limiting the resolution?

mstrens commented 1 year ago

I think I understand what happened. Can you test with 2.5.10 version.

Allerhopp commented 1 year ago

Thanks, this change works perfectly! Btw. the noise is lower than +/- 0.04° which is better than expected.

mstrens commented 1 year ago

Indeed, I expected more noise. That is the reason why I initially had no decimals.

Allerhopp commented 1 year ago

Now we can continue measuring. FYI this is our newly designed Prandtl nozzle for SDP-sensors. Prandtl2-2