Web UI: 3D model orientation axes are wrong #15

Closed
opened 2026-02-28 17:02:23 -05:00 by seb · 0 comments
Owner

Bug

All three axes (pitch/roll/yaw) are now streaming and the 3D model moves, but the orientation mapping is incorrect — physical movements don't match the expected visual rotation.

Current mapping (from PR #14)

pitch → rotation.x  (tipping forward/back)
roll  → rotation.z  (banking left/right)
yaw   → rotation.y  (vertical spin)

What needs fixing

The axis assignments or sign conventions need to be adjusted to match the physical FC orientation. This depends on how the MAMBA F722S MPU6000 is mounted on the board (CW270 rotation per config.h).

To debug

  1. Hold FC flat, note baseline values
  2. Tilt forward only — which UI axis moves?
  3. Tilt left only — which UI axis moves?
  4. Rotate clockwise — which UI axis moves?
  5. Adjust rotation.x/y/z assignments and signs to match

May also need to account for the CW270 IMU alignment configured in firmware.

## Bug All three axes (pitch/roll/yaw) are now streaming and the 3D model moves, but the orientation mapping is incorrect — physical movements don't match the expected visual rotation. ## Current mapping (from PR #14) ``` pitch → rotation.x (tipping forward/back) roll → rotation.z (banking left/right) yaw → rotation.y (vertical spin) ``` ## What needs fixing The axis assignments or sign conventions need to be adjusted to match the physical FC orientation. This depends on how the MAMBA F722S MPU6000 is mounted on the board (CW270 rotation per config.h). ## To debug 1. Hold FC flat, note baseline values 2. Tilt forward only — which UI axis moves? 3. Tilt left only — which UI axis moves? 4. Rotate clockwise — which UI axis moves? 5. Adjust rotation.x/y/z assignments and signs to match May also need to account for the CW270 IMU alignment configured in firmware.
seb closed this issue 2026-02-28 17:28:57 -05:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#15
No description provided.