Fix NEXUSX default IMU orientation#11338
Open
sensei-hacker wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
Open
Fix NEXUSX default IMU orientation#11338sensei-hacker wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
sensei-hacker wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
Conversation
The default IMU_ICM42605_ALIGN was set to CW180_DEG, which is 180 degrees off from the physical direction arrow on the RadioMaster NEXUS-X board. Users had to manually apply YAW-180 correction in the configurator to get correct orientation. Change alignment to CW0_DEG to match the board silkscreen. Fixes iNavFlight#11325
Contributor
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan PR Compliance Guide 🔍All compliance sections have been disabled in the configurations. |
Contributor
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan PR Code Suggestions ✨No code suggestions found for the PR. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Summary
Fixes the backwards default IMU orientation on the RadioMaster NEXUS-X target. The direction arrow printed on the board did not match the default orientation in firmware — users had to manually apply YAW-180 correction in the configurator.
Changes
IMU_ICM42605_ALIGNfromCW180_DEGtoCW0_DEGintarget/NEXUSX/target.hTesting
Code Review
Reviewed — no issues found. Single-line compile-time constant change, no runtime logic affected.
Fixes #11325
PR Type
Bug fix
Description
Corrects IMU orientation to match physical board silkscreen
Changes default alignment from CW180_DEG to CW0_DEG
Eliminates need for manual YAW-180 correction in configurator
Diagram Walkthrough
File Walkthrough
target.h
Update IMU alignment constant for NEXUSX targetsrc/main/target/NEXUSX/target.h
IMU_ICM42605_ALIGNfromCW180_DEGtoCW0_DEG