-
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
**Feature Request**: block arming after sensor calibration, require system reboot (or graceful re-init) prior to flight #9030
Comments
That makes total sense. |
I support this proposal. The step change in sensor offsets combined with the motion associated with calibration can be outside estimator tuning limits and and number of states/variables external to the estimator that would need to be handled correctly make an enforced reboot the logical choice. |
I would propose trying to directly address these issues rather than a full power cycle.
1 & 2 could be done first and used to implement @Antiheavy's proposal immediately while 3 & 4 can come later. |
the system could check if rotation and acceleration is low before re-initializing. If motion is detected a warning can be set: "Hold vehicle still to re-initialize sensors after calibration". I also think there should be some positive feedback after a calibration that the re-initialization was successful. This could be a text message, but might be better as a "all good" state indicator displayed in QGC. e.g. #8697 |
@priseborough makes an important point here as well. |
He's not wrong, I just think it's a sign of a deeper problem if we can't find a way to do this cleanly/safely. |
Related issue in the QGC repo from another user: mavlink/qgroundcontrol#6768 (comment) |
Perhaps we should finally do something about this. I propose we add a CALIBRATION state to the arming state transition table. EKF2 already monitors the arming state to know when it's safe to save parameters for things like the learned mag bias. On transition out of CALIBRATION we can have EKF2 reinitialize itself, including asking the user to hold the vehicle still if necessary. Thoughts? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is still valid. Multiple solutions have been proposed here for consideration if/when someone is able to work on it. |
still valid. more graceful re-initialization after re-calibration is needed for commercial and consumer grade products. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still valid issue. |
A different solution - #15655 |
I think we can consider this one effectively resolved for a few reasons.
If there's still concern I'm happy to entertain additional mechanisms for further enforced user behaviour (requiring the user to stop spinning before completing mag cal?), but I'd like to see data first. |
hooray! |
I've seen it recommended many times that the system should get a full power-cycle reboot after sensor re-calibration. In out own experience, the step change or dynamic motion after sensor re-calibration (especially Compass Cal) often causes EKF or sensor warnings. We've had flights where the EKF got unhappy after takeoff due to a re-calibration during preflight, ultimately causing failsafe behavior and sometimes vehicle crashes.
We've experimented a lot with soft reset of the EKF and soft reset of the whole firmware, but that often cause various other errors too - certain external sensor may remain powered during a soft reset or state machine things aren't resetting and that may mess with things. The most reliable method of cleanly re-initializing the EKF after calibration is a full system power cycle.
Proposal: after completion of a sensor calibration :
A system flag may be required for this.
FYI @dagar @priseborough
The text was updated successfully, but these errors were encountered: