-
Notifications
You must be signed in to change notification settings - Fork 17.2k
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
SITL: gimbal rotate resets copter's yaw to 0 #15699
Comments
STORM32 does not seem to have PAN control. |
It just has a hard-coded value of false for has_pan() control. If you hard code it to true, the gimbal works as expected and the copter does not yaw. |
Is this a bug? Can it be fixed with a PR? |
This seems to be expected behavior for the 2 axis gimbal in SITL. |
I've reproduced this issue and I have a fix in PR #21639 |
fixed in master and the fix will be included in Copter-4.3 |
Bug report
Issue details
When a MAVLink command is issued to rotate the gimbal, the copter's yaw is reset to 0 degree.
I am using Dronekit 2.9.2 which sends MAVLink commands through pymavlink. The rotate(pitch, roll, yaw) function for the gimbal contains the following code sequence:
I am not sure, if this also happens in the real world but at least I see this behaviour in SITL. I tested with MNT_TYPE == 4
Version
ArduCopter 4.1.0-dev, Dronekit 2.9.2
Platform
[ ] All
[ ] AntennaTracker
[x] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
Airframe type
Quad
Hardware type
SITL in Mission Planner
Logs
The text was updated successfully, but these errors were encountered: