I changed the range of values in the autopilot parameters for the camera servo to increase the tilt range (yes I checked it doesnt hit anything!). Problem now is I cannot find how to modify the mount_center function that is mapped to the joystick by default.
Its weird because the cam_tilt function in the miniwidgit value accurately shows the center position of the camera tilt correctly (ie at 50%) but now the mount_center button press takes it to 67% which is no longer the center position with the new values.
I find it really useful to have the mount_center function working correctly as provides useful heads up feedback about vehicle pitch from the video without looking for the mini widgit value.
Hi @BillyBudd -
If you’re on BlueOS Beta, under vehicle setup there is a Camera Gimbal configuration menu that may help. Otherwise, the mount_center action should bring the camera to “50%” - or whatever that servo channel trim parameter has been set to…
Many Thanks @tony-white - I did try and edit the Servo16 trim parameter to 50% of the new min/max range and it shows a cam_tilt value value of 67% in the miniwidgit when I button down on mount_center but will try again and also try the new BlueOS beta version to see if I can get it correct.
Noting that trimming support was only recently-ish added to ArduSub, and is currently only available in development releases (not stable or beta), so you’ll likely need to be on a dev firmware for it to work as expected.
The parameters were already there from when ArduSub branched off from ArduCopter though (they just didn’t do anything), which could potentially explain the behaviour you’re seeing.
I’ve asked internally whether we can do the work to backport it / get it into some kind of release, but no guarantees on timeline for that as we’ve got higher priorities at the moment.
Others are of course welcome to try to do the back-port to the Sub-4.5 branch if they want - ArduSub is open source after all
It may be as simple as copying the pull request changes over, or may involve some more significant rework of other parts of the codebase - I’m not sure right now.
Thanks @EliotBR and @tony-white, been nervous about installing a beta version with everything working so well with the latest stable version but will give it a go as like to check out the new Ping widgits as well as the camera gimbal configuration option Tony refers to above.