-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Enhancement: More calibration related parameters are preserved when o… #14486
base: main
Are you sure you want to change the base?
Conversation
…nly autoconfig reset happened. Current setup makes magnetometer and offset data invalidated.
I was opposed to some of this in the past, but I think it's worth reconsidering. We have preflight checks for the estimator and sensor consistency checks. If there's an issue it's quite likely the user is going to re-calibrate at that point. If anything I've noticed that unnecessarily resetting calibrations leads to users redoing the calibration quickly and poorly. Does anyone else have an opinion here? @bresch @bkueng @jlecoeur |
Personally, I think that only the autopilot-related parameter should be preserved, so not the bias of the external mag and not the EKF biases. |
I am generally in favor of this. See #13276. We may discriminate a software airframe change (no calib needed) from a hardware airframe change (calib needed). Ideally, the user would be prompted just after selecting a new airframe: |
Actually, one of the cases is SYS_AUTOSTART not changing (re-clicking the same airframe in QGC). It would be safe to preserve mag cal in that case. @bresch that could work longer term, but I think in most cases it's really the QGC side driving this. @hyonlim could you go through your particular usage? Would the special case around an unchanged SYS_AUTOSTART help? |
If there is special case for SYS_AUTOSTART, that would help. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Describe problem solved by this pull request
Current rcS script invalidated magnetometer calibration data when SYS_AUTOCONFIG sets to 1 with AUTOSTART number given.
Describe your solution
More calibration related parameters are preserved when only autoconfig reset happened. Current setup makes magnetometer and offset data invalidated.