-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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 object tracking command for ViewPro #29228
base: master
Are you sure you want to change the base?
Conversation
The change was tested with CubeOrangePlus connected to ViewPro A10T |
Hi @eppravitra, Thanks for your work on fixing the ViewPro driver. Are you sure this works correctly? It seems there could be two problems:
Shouldn't this line: .. actually be ..
|
Hi @rmackay9, The code works. I tested it with actual hardware. I very much agree with your concerns though. I am willing to help make changes, to make things clearer.
With your permission, could I make the change? Of course, it will break someone's code that might be using this function, but the change will make it comply with mavlink documentation. |
Thanks, as long as we think it is correct then I think the 2nd change should be fine. I suspect nobody has used the tracking function yet so it's likely safe. It looks like I have added a command to test this to our MAVLink Interfaces Camera wiki page but I only tested the very center so this is likely why I didn't notice the problem. Once we get this fixed, I'll add some more tests to that page. Ideally when doing testing we should confirm that it's incorrect before and correct aftwards. So two tests if possible. |
The command should also take negative values Redo scaling to comply with mavlink documentation.
53298b8
to
e8ec61b
Compare
The scaling change has been made @rmackay9 . I think this one is ready for a merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and it works well, thanks!
The command should also take negative values