-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Gimbal manual control doesn't work #11956
Comments
Can you try with PX4 v1.15.0 and/or with MNT_MODE_IN set to MAVLink gimbal v2? |
Alright, after arming, the gimbal responds to the |
Aha, that's good news! Which gimbal is that? It sounds like angle input works but angular velocity does not. I wonder if the problem is on the PX4 side converting this. I remember looking into this a while ago. Could you double check with PX4 v1.15.0? |
Ok, I believe the issue here is that your gimbal output (PWM output) doesn't support angular rate commands but only angles. So we should probably add that to the PX4 driver. The logic is missing here: https://github.com/PX4/PX4-Autopilot/blob/f55c3b890b0bd598084233e44875c3f3076931fb/src/modules/gimbal/output_rc.cpp#L68-L82 |
Hi!
It's a custom build based on a standard PWM Servo called
Servo rail is powered by 5V BEC
Yeah, all current test results is from v1.15.0
I achieved some minimal (almost invisible, but still) response to joystick input after changing |
FYI in my testing with a MAVLink gimbal protocol v2 output the gimbal up/down commands from the joystick only move the gimbal by 1°. I'd need to check what the implementation on ground station side is bug I thought it takes the current gimbal attitude as per it's telemetry and just adds a tiny amount on top and you have to actually keep on spamming the button on repeat to see the movement. To be verified but that's an observation I made. The "gimbal center" joystick button command sends an attitude command to level out and executes nicely if no conflicting commands are coming simultaneously. |
@eshcheglov I can now reproduce this. When you check the "Repeat" checkbox next to the gimbal commands it starts working, however, it's still painfully slow. @Davidsastresas should we just increase the step size to make this faster somehow? It's somewhat manageable with steps of 5 degrees instead of 1 but it's still awkward and not smooth. I wonder if we should instead use the angular velocity API for this, so when you press it down it will start the movement and when you release the button it will stop the movement. |
Sounds like a better approach yes. I think for a good user experience, you need to be able to quickly bring it up to level, straight down and possibly also 45° forward down and then fine adjust with whatever button or rocker you have. The speed for the adjustment needs to be tied to focal lengt/zoom level. |
Right. I remember there was a discussion about this at some point. I wonder if we need to add a flag to MAVLink that allows scaling the angular velocity according to zoom, so that the camera/gimbal itself can adjust it. |
BTW, the on-screen gimbal control works like a charm. I'm referring to the touchscreen gesture approach, where touching the top or bottom of the screen moves the gimbal quickly and across a wide range. |
@eshcheglov hm, can you maybe provide a video regarding the touchscreen gesture problem? I'm not sure I understand what you mean. |
Steps to Reproduce:
Follow the official instruction
MNT_MODE_OUT=AUX
MNT_MODE_IN=Auto
Actuators
tab:Actuator Testing
MNT_MAN_PITCH=AUX5
Joystick -> Button Assigment
tab setGimball Up
andGimball Down
to some buttons on connected USB joystickGimbal work automatically:
MNT_DO_STAB
is enabled.So I can assume that gimbal is actually working, but I can't manipulate it manually for some reason
System Information
The text was updated successfully, but these errors were encountered: