Skip to content

Fix NEXUSX default IMU orientation#11338

Open
sensei-hacker wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
sensei-hacker:fix/issue-11325-nexusx-imu-orientation
Open

Fix NEXUSX default IMU orientation#11338
sensei-hacker wants to merge 1 commit intoiNavFlight:maintenance-9.xfrom
sensei-hacker:fix/issue-11325-nexusx-imu-orientation

Conversation

@sensei-hacker
Copy link
Member

@sensei-hacker sensei-hacker commented Feb 15, 2026

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

  • Changed IMU_ICM42605_ALIGN from CW180_DEG to CW0_DEG in target/NEXUSX/target.h

Testing

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

flowchart LR
  A["IMU_ICM42605_ALIGN<br/>CW180_DEG"] -- "Fix orientation<br/>mismatch" --> B["IMU_ICM42605_ALIGN<br/>CW0_DEG"]
  B -- "Matches board<br/>silkscreen" --> C["No manual<br/>correction needed"]
Loading

File Walkthrough

Relevant files
Bug fix
target.h
Update IMU alignment constant for NEXUSX target                   

src/main/target/NEXUSX/target.h

  • Changed IMU_ICM42605_ALIGN from CW180_DEG to CW0_DEG
  • Aligns default IMU orientation with physical board direction arrow
  • Eliminates requirement for users to apply YAW-180 correction
+1/-1     

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
@qodo-code-review
Copy link
Contributor

ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan

PR Compliance Guide 🔍

All compliance sections have been disabled in the configurations.

@qodo-code-review
Copy link
Contributor

ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan

PR Code Suggestions ✨

No code suggestions found for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant