-
Notifications
You must be signed in to change notification settings - Fork 153
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
Can's seem to rotate Gimbal in SDK #471
Comments
Agent comment from SHENRONG.LE in Zendesk ticket #126550: As shown in the screenshot, did you pass in exactly the right parameters to achieve the Angle change? I need to pass in all the parameters. Thank you for your email and have a nice life! °°° |
@petered I've had success pitching the gimbal with these parameters using the fun rotateGimbal() {
val gimbalRotation = GimbalAngleRotation()
gimbalRotation.pitch = -20.0
gimbalRotation.yaw = -30.0
gimbalRotation.mode = GimbalAngleRotationMode.ABSOLUTE_ANGLE
gimbalRotation.duration = 0.5
GimbalKey.KeyRotateByAngle.create()
.action(gimbalRotation, {}, { djiError ->
Log.e("GIMBAL_PITCH_ERROR", "KeyRotateByAngle Error: $djiError")
})
} |
Bingo! Thank you @brien-crean . Turned out I had 2 things wrong:
Notes
|
I'm trying to rotate the gimbal in the DJI SDK 5.12
As an experiment, I'm just trying to do a -20deg pitch, -30deg yaw over 0.5 sec.
My code for doing it is
It always fails. The log is:
Does anyone have an idea of what I might be doing wrong here?
The text was updated successfully, but these errors were encountered: