You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
So I have this code:
but it returns this:
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?The text was updated successfully, but these errors were encountered: