Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airspeed sensor calibration only checks the piping polarity #17576

Open
roman-dvorak opened this issue May 14, 2021 · 2 comments
Open

Airspeed sensor calibration only checks the piping polarity #17576

roman-dvorak opened this issue May 14, 2021 · 2 comments

Comments

@roman-dvorak
Copy link
Contributor

Describe the bug
I tried to use our TFSLOT sensor with PX4 at our TF-G2/4s and we encountered several problems. The TFASPDIMU sensor board has a fixed SDP33 diff pressure sensor. And a positive speed value causes negative pressure in the pressure sensor. And because of that, I was not able to do a normal calibration.

After examining the callibration code, I found that the calibration only detects the correct connection of the sensor. In case of negative pressure it will end.

Subsequently, I compared Airspeed via TFSLOT and from GPS. There I obtained this measurements:
184701903_463658914868377_3073502775184222893_n

It is necessary to add a constant into the calculation of airspeed, which will depend on the TFSLOT profile.

Expected behavior
Expected behavior is that the autopilot remembers the measured polarity and this will multiply the pressure obtained form pressure sensor. For example, in the form of a parameter.

Additional context

  1. Calibration i have solved with blowing from behind of TFSLOT (TFSLOT it allows against pittot tube). The autopilot thinks it's OK.
  2. And for calculation of airspeed I have created this modifications of FW: ThunderFly-aerospace@c6d9397

I created a new profile for calculation of airspeed from TFSLOT, which is turned on by a new value in the parameter CAL_AIR_CMODEL This profile is almost same as profile for pitot tube. But diff pressure is negated.

Questions

  • Are these adjustments acceptable to PX4? (New profile for TFSLOT, custom calculation of airspeed)
  • Does it have any reason that calibration cannot reverse the measunig direction? Or is it just not programmed? I understand that this is a problem with some sensors. But in the case of SDP3x, it shouldn't matter.
@dagar
Copy link
Member

dagar commented May 14, 2021

What if we simply expose the differential scale factor calibration and allow it to be negative?

@roman-dvorak
Copy link
Contributor Author

Hi, yes, it sounds good. I saw this parameter. But I wasn't sure if it would affect (break) something else.

Do you mean that this parameter well be automatically negated during the calibration with a negative pressure? Should I do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants