Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_Mount: fix SiYi doesn't zoom continuously while manual zoom control #24639

Merged
merged 1 commit into from Aug 26, 2023

Conversation

khanasif786
Copy link
Contributor

While sending a Manual zoom (rate) command to SiYi. zoom stops multiple time in between. This Pull fixes this by sending the same command multiple time at 20Hz. Tested on Zr10.
Support issue link here
I find out one more bug that is probably SiYI side. that is when we watch the zoom value on the SiYI FPV app the values are different than real zoom. eg: on 30x sometime it tell 20x, 22x, 27x etc.

@khanasif786 khanasif786 force-pushed the zoom_bug branch 6 times, most recently from fedeac0 to 36d930a Compare August 22, 2023 19:09
@khanasif786
Copy link
Contributor Author

I think CI shouldn't fail now. @rmackay9 Could you please review this again.

@khanasif786 khanasif786 force-pushed the zoom_bug branch 2 times, most recently from dc0b1ee to 724f03c Compare August 23, 2023 07:02
@khanasif786
Copy link
Contributor Author

Updated on top of my changes as suggested on discord.

@khanasif786
Copy link
Contributor Author

khanasif786 commented Aug 23, 2023

@rmackay9 , Have you done any testing on your branch here. Cause i pushed it here.

Copy link
Contributor

@rmackay9 rmackay9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks.

I've tested this quite a bit on my A8 and ZR10. The absolute zoom doesn't work on my ZR10 but it does apparently work on @khanasif786's ZR10.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

libraries/AP_Mount/AP_Mount_Siyi.cpp Show resolved Hide resolved
libraries/AP_Mount/AP_Mount_Siyi.h Show resolved Hide resolved
@khanasif786
Copy link
Contributor Author

khanasif786 commented Aug 24, 2023

changed according to @peterbarker suggestion for using a structure.

Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
@rmackay9 rmackay9 merged commit dffeaf0 into ArduPilot:master Aug 26, 2023
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants