Better yaw estimation for mulitirotor(magless operation)#11114
Better yaw estimation for mulitirotor(magless operation)#11114sensei-hacker merged 1 commit intoiNavFlight:masterfrom
Conversation
PR Compliance Guide 🔍(Compliance updated until commit 3110059)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 3110059
|
||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
@sensei-hacker |
User description
Follow-up PR for #11046
cleaned up the code.
some twicks
realflight testes, shows its ablity to recover from toliet blow
https://youtu.be/46TANQQ4KBc
PR Type
Enhancement
Description
Add new function to calculate accelerometer weight based on angular rate
Integrate rate-based weight reduction in GPS acceleration heading estimation
Remove debug logging statements for cleaner production code
Lower default
acc_ignore_ratethreshold from 20 to 15 deg/sDiagram Walkthrough
File Walkthrough
imu.c
Enhance yaw estimation with angular rate weightingsrc/main/flight/imu.c
imuCalculateAccelerometerWeightRateIgnore()to calculate weightreduction based on angular rate
imuCalculateMcCogAccWeight()to reduce GPS acceleration vector weightduring high angular rates
imuMahonyAHRSupdate()andimuCalculateEstimatedAttitude()functionsflight scenarios
Settings.md
Lower accelerometer ignore rate threshold defaultdocs/Settings.md
acc_ignore_rateparameter from 20 to 15deg/s
settings.yaml
Update default accelerometer ignore rate settingsrc/main/fc/settings.yaml
ahrs_acc_ignore_ratedefault value from 20 to 15 deg/s