-
Notifications
You must be signed in to change notification settings - Fork 116
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
Pan and Tilt of camera gimbal #14
Comments
Seems the gimbal must be inn YawFollow mode, and not in FREE mode. Try changing the code like this and test: DroneModel.java line 1477... /********************************************
Please report results ... |
It might not be that easy:
|
Will do new builds and see what works best. Thanks |
Okay, Last question then I'll be able to give you my findings. Is there a way to change the modes (sports, p-mode and tripod) without using the slider on the controller. An app button, setting or line of code? |
On the first bootup: P-Mode or Tripod: Sport: After Switching Modes: P-Mode: Tripod: Sports: On all modes and first boot, Gimbal Pan works properly only on the ground. There is no way to get movement and full collision detection. To get full detection you must switch modes even if booted in tripod as you only get front and rear, switching modes causes the loss of movement and gimbal pan. To regain these, the drone must be rebooted. Yaw does not respond in any mode regardless of gimbal build. A form of Yaw is after a mode switch the pan becomes the Yaw, leaving no way on panning. A way to solve the everything except for the Yaw, is to do the system check that happens when switching to tripod which activates the remaining sensors, if the controller is booted/connected already in tripod mode so that you don’t have to switch out of tripod and back in to get the sensors, thereby losing movement. |
Heres the WordDoc version |
My workaround is to rotate the entire drone, and only use pitch on the camera controller. One can move in any direction while pointing the head in another. |
I have investigayed a bit more, on Inspire this does not happen, seems I can not get around it on the Mavics ... |
Dear rosettadrone friends and @The1only , I was wondering if someone tried DroneKit's Gimbal control function. We are trying to use DroneKit to change the pitch of gimbal, but not very sure if it is compatible with rosettadrone. -- Luke |
Yes this is a big problem. It all depends on what DJI drone you use, the Inspire and Matrice shuld work as expected, however the Mavic has this issue, and if you read the DJI SDK manual there seems to be no way around it. Any suggestions are welcome. I too got issues with camera not pointing forward and it can not be adjusted in air.
I’ll fix it as soon as someone works out why!
|
Hopefully soon I'll be able to get back to working on the Mavic. |
Might have a solution here. Alternative ability to control the sticks instead? |
The Pan and Tilt of camera gimbal works fine as expected on the ground with the def setServo.
However in flight, the servo 8 which pan's the gimbal, now yaw's the craft.
Land again, this works perfectly,
So now the craft doesn't pan the camera but does tilt the camera,
If you yaw normally the craft yaw's twice, either with the setServo direction or against the direction.
Tried using the Mav ROI instead, that doesn't move the gimbal at all.
If the gimbal pan was set to an awkward angle on take off, this cannot be corrected in flight, even though the tilt can.
Any ideas on how to fix this?
The text was updated successfully, but these errors were encountered: