P0: Yaw rotation is inverted in web UI #38

Closed
opened 2026-02-28 21:47:15 -05:00 by seb · 0 comments
Owner

Bug

Pitch and roll display correctly after PR #20 axis fix. Yaw is inverted — rotating CW shows CCW in the UI (or vice versa).

Fix

Negate the yaw sign. Either:

  • Firmware: flip gz sign in mpu6000.c yaw integration
  • Or UI: remove the negation on targetYaw in ui/index.html (currently targetYaw = -yaw * Math.PI / 180)

Only one of these — not both.

Priority

P0 — breaks visual feedback during testing.

## Bug Pitch and roll display correctly after PR #20 axis fix. **Yaw is inverted** — rotating CW shows CCW in the UI (or vice versa). ## Fix Negate the yaw sign. Either: - Firmware: flip `gz` sign in `mpu6000.c` yaw integration - Or UI: remove the negation on `targetYaw` in `ui/index.html` (currently `targetYaw = -yaw * Math.PI / 180`) Only one of these — not both. ## Priority **P0** — breaks visual feedback during testing.
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#38
No description provided.