Drone spin around yaw-axis after virtual stick is disabled
CompletedAfter disable virtual stick the drone start to yaw in interval of around 45 degrees every second. The drone is possible to control with the remote controller but it is hard to do any smooth movement since switching yaw direction every second. If I press the go-home button the drone stop spinning and start go home but if i stop go-home the spinning start again.
I'm using a AIR 2S with iOS SDK.
-
Can you tell us under what circumstances this problem usually occurs? How can we steadily reproduce this problem?There is a known problem related to virtual joystick, is this a problem you encountered? ![](https://djisdksupport.zendesk.com/attachments/token/hnifXqDWKZC6AI1ppaFW4ylCs/?name=image.png) -
This happen when using iOS SDK together with an AIR2S.
This is the sequence:
- Virtual stick is enabled.
- Sending ctrl-data with following setup to control the drone (lots of different pitch, roll, yaw and throttle commands):
rollPitchCoordinateSystem = .body
rollPitchControlMode = .velocity
yawControlMode = .angle
verticalControlMode = .position - When I am going to stop the drone and leave virtual stick mode, I first send 0 command to pitch, roll, yaw and throttle with setup:
rollPitchCoordinateSystem = .body
rollPitchControlMode = .angle
yawControlMode = .angle
verticalControlMode = .velocity - And after that I deactivate the virtual stick.
Perhaps it is the same as the known issue you mentioned. Is the solution to set to same coordinate system used when virtual stick is not used?
-
I did not reproduce your problem in my tests. You can try the configuration we recommend for the virtual stick. You can configure these four modes first and then start the virtual stick mode. Recommended configuration: rollPitchCoordinateSystem = .body rollPitchControlMode = .velocity yawControlMode = .velocity verticalControlMode = .velocity Video of my test:https://pan-sec.djicorp.com/s/oXXJHe8dYwAgnff password:dji123 -
Hi again,
So I have tried to reproduce the issue and sometimes it happens sometimes not. Here is a video how it looks:
https://streamable.com/v6wofzWhen i control the drone with virtual stick a usually use:
rollPitchCoordinateSystem = .body rollPitchControlMode = .velocity yawControlMode = .angle verticalControlMode = .position
and then sent wanted commands. Before I turn the virtual stick off I set:
rollPitchCoordinateSystem = .ground rollPitchControlMode = .velocity yawControlMode = .velocity verticalControlMode = .velocity and then sent zero speed to all directions once, and after I that set virtual stick disabled.
I notice now that you suggest .body as coordinate system with velocity as control mode for all directions, so I will try that tomorrow. Is it enough to set that configuration just one before turn virtual stick off?
Another issue is that if I disconnect the remote controller from my iOS unit while virtual stick is active it is not possible to control the drone. I have to switch to sport-mode and back again to deactivate the virtual stick and be able to control the drone. Is this expected? -
1.Is it enough to set that configuration just one before turn virtual stick off? -->In fact, you don't need to modify the configuration specifically before turning off the virtual stick. You can first test if the problem occurs with the standard configuration as well. We recommend configuring the virtual stick mode first, and then enabling the virtual stick. 2.Another issue is that if I disconnect the remote controller from my iOS unit while virtual stick is active it is not possible to control the drone. I have to switch to sport-mode and back again to deactivate the virtual stick and be able to control the drone. Is this expected? -->When using the virtual joystick, the IOS device must be connected to the remote control. This is because the MSDK is communicating with the drone through the remote control.
Please sign in to leave a comment.
Comments
8 comments