Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-firmware/fix-orientation-telemetry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Issue #12 — Roll displayed as pitch:
r = pitch_rate(wrong field name, wrong data). Changed tor = roll_deg × 10.mpu6000.c: added roll complementary filter —accel_roll = atan2(ay, az)+ gyrogyintegration atCOMP_ALPHA=0.98, same as pitch filter.IMUDatastruct: addedrollandyawfields.updateIMU()now usesdata.r / 10for roll. Previously computed roll client-side fromax/ay/azwhich firmware never sent → roll was always 0°.roll → rotation.z(banking),pitch → rotation.x(tipping) — axes were already correct, fix was the firmware data.Issue #13 — Add yaw telemetry:
gz × dt → s_yaw), sent asy = yaw_deg × 10. Gyro-only, drifts — no magnetometer on MAMBA F722S.IMUData:yawfield added.boardGroup.rotation.y(vertical axis spin). Displayed in HUD as YAW row.Test plan
Closes #12, #13.
Flash-tested: all 3 axes streaming (p/r/y). Yaw accumulates correctly. Merging.