forked from bitcraze/crazyflie-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved Tumble Detection and Handling
This change improves several issues with the current tumble detector: 1. The old detector was only enabled if the Kalman filter was initially enabled. If one switched dynamically to a different state estimator, this important safety feature did not engage. 2. The old detector triggered by angle, which is an estimated value. If the state estimator diverged, no tumble was detected. The new solution relies on the accelerometer instead, a direct sensor measurement. 3. The old detector was not sticky, i.e., a user might pick up a CF and it starts spinning again, see issue bitcraze#258. The new version triggers an emergencyStop instead. The emergency stop can be reset and read using the new parameter stabilizer.stop. 4. Smaller fixes: a) Add more #ifdef guards to only compile actually enabled code. b) Interface clean-ups This replaces the PR bitcraze#470. This change has been tested on a bench test and with the Crazyswarm.
- Loading branch information
Showing
3 changed files
with
81 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters