Gimbal speed auto fov
Auto-adjust gimbal FOV and zoom-dependent control Description
This change requests updated camera field-of-view (FOV) information from the vehicle whenever the gimbal zoom level changes. By using CAMERA_FOV_STATUS, QGC dynamically updates the horizontal and vertical FOV values and adjusts the click-to-point gimbal movement accordingly. When zoomed in, the gimbal motion becomes finer and moves a shorter distance per click, improving precision.
In addition, pitch and yaw rate limits are scaled based on zoom level to maintain smooth and intuitive control.
Test Steps
- Connect to a drone equipped with a zoom gimbal.
- Enable click-to-point functionality in Gimbal Settings.
- Change the zoom level.
- Verify that HFOV/VFOV values update automatically.
- Click on the video stream and confirm that gimbal motion becomes more precise at higher zoom levels.
Checklist:
- [ x] Review Contribution Guidelines.
- [ x] Review Code of Conduct.
- [ x] I have tested my changes.
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.
Still got some // dev comments to remove
Still got some
// devcomments to remove
Absolutely, good catch. I will clean up the remaining // dev comments
@Niki-dev12 Form looking at the Copilot review it seems to me that most of what it says is valid. Can you address those and then squash to a single commit. Then we can look again.
@Niki-dev12 Form looking at the Copilot review it seems to me that most of what it says is valid. Can you address those and then squash to a single commit. Then we can look again.
Thanks for the feedback. I will review and address the Copilot suggestions. I will update the MR once it is prepared for the next review.