Skip to content

Conversation

Niki-dev12
Copy link
Contributor

Show calibrated joystick axis output in calibration screen

Description

This update chnages the joystick calibration UI by displaying real-time calibrated axis output values for Roll, Pitch, Yaw, and Throttle during and after calibration.
It helps verify that calibration is applied correctly.

Key changes

  • Added dynamic axis visualization (AxisMonitor) for each joystick channel.
  • Implemented helper functions (joyToAxis, joyToThrottleAxis) to apply clamping and mapping to QGC’s internal range
  • Integrated calibration reversal logic so UI reflects post-calibration orientation.
  • Updated Connections.onAxisValues to respond immediately to calibration changes.

Test Steps

  • Open Joystick Setup Calibration in QGroundControl.
  • Move Roll, Pitch, Yaw, and Throttle sticks after calibration.
  • Confirm that each Axis Monitor bar responds smoothly and in the correct direction.
  • Toggle Reverse on any axis and ensure the visualization flips
  • Verify that throttle range maps correctly from 0–1 to –32768..32768.

Checklist:

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant