-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Accelerometer calibration problem on FMUV5 #11695
Comments
Were the calibration parameters changing between attempts or relative to 1.8.2? |
@dagar No |
@dagar Sorry, I should explain better. Calibration params were not changed when moving between master and 1.8. We are able to reproduce this on several devices. |
I reproduced this locally and confirmed both stable (v1.8.2) and current master produce effectively the same calibration parameters on the same hardware. |
The raw data looks equivalent, but the scaling changed. master
stable
EDIT: Disregard, only the listener float print format changed. Confirmed scaling didn't change. |
@dagar After bisecting the commits, I found the guilty one:
On commit d299d43
On the previous one (91dcfb7):
Note that I didn't do any calibration between the two tests, It's then not a calibration issue. |
It looks like this is coming from floating point loss of precision. In PX4 master the sensor data is rotated after being scaled and stored as floats (raw data is int16). In stable the rotation is done with the data still scaled (2048 G/LSB), then scaled down. |
- prevents loss of numerical precision - fixes #11695
Ha, thanks @bresch. I only just saw your reply now. |
- prevents loss of numerical precision - fixes #11695
- prevents loss of numerical precision - fixes #11695
Describe the bug
We noticed a high magnitude of the accelerometer Z component which we could not eliminate even after several accelerometer calibrations. It seems that only the first instance of the sensor_accel topic is affected. Furthermore, the problem does not occur with 1.8.2 on the same hardware with the same parameters.
The text was updated successfully, but these errors were encountered: