Open roman-dvorak opened 3 years ago
What if we simply expose the differential scale factor calibration and allow it to be negative?
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?
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:
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
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