Skip to content
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't move gimbal in yaw or roll - mavic 2 enterprise dual #53

Open
walseb opened this issue Apr 14, 2020 · 1 comment
Open

Can't move gimbal in yaw or roll - mavic 2 enterprise dual #53

walseb opened this issue Apr 14, 2020 · 1 comment

Comments

@walseb
Copy link

walseb commented Apr 14, 2020

So I have this code:

            Task<ResultValue<GimbalAttitudeRange?>> tskGimbalGet = DJISDKManager.Instance.ComponentManager.GetGimbalHandler(0, 0).GetGimbalAttitudeRangeAsync();
            await tskGimbalGet;
            System.Diagnostics.Debug.WriteLine("Gimbal range max yaw: " + tskGimbalGet.Result.value.Value.yaw.max.ToString());
            System.Diagnostics.Debug.WriteLine("Gimbal range min yaw: " + tskGimbalGet.Result.value.Value.yaw.min.ToString());

            System.Diagnostics.Debug.WriteLine("Gimbal range max roll: " + tskGimbalGet.Result.value.Value.roll.max.ToString());
            System.Diagnostics.Debug.WriteLine("Gimbal range min roll: " + tskGimbalGet.Result.value.Value.roll.min.ToString());

            System.Diagnostics.Debug.WriteLine("Gimbal range max pitch: " + tskGimbalGet.Result.value.Value.pitch.max.ToString());
            System.Diagnostics.Debug.WriteLine("Gimbal range min pitch: " + tskGimbalGet.Result.value.Value.pitch.min.ToString());

but it returns this:

Gimbal range max yaw: 0
Gimbal range min yaw: 0
Gimbal range max roll: 0
Gimbal range min roll: 0
Gimbal range max pitch: 0
Gimbal range min pitch: -90

which suggests that the gimbal can only change pitch. I tried rotating on the yaw axis anyways and got a PARAM_OUT_OF_RANGE error. Am I doing something wrong? Does this work on the android SDK?

@dji-dev
Copy link
Contributor

dji-dev commented Apr 16, 2020

Agent comment from William Wong in Zendesk ticket #33583:

Dear Client
Thank you for contacting DJI.

It seems weird. We have checked pitch can rotate from -90 to 30 and yaw can rotate from -75 to 75. Could you check in Android SDK to see if it returns the same result? We doubt this might be a bug.

Hopefully our solution can help you.
Kindly Regards,
DJI Developer Support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants