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

Flight Controller isVirtualStickControlModeAvailable Incorrectly Returns False #62

Open
pquimby opened this issue Dec 15, 2016 · 2 comments

Comments

@pquimby
Copy link

pquimby commented Dec 15, 2016

Some percentage of the time (about %10 of connections), the flight controller isVirtualStickControlModeAvailable result will always be False regardless of whether it is possible to engage virtual stick mode. Under these circumstances, calling enableVirtualStickControlModeWithCompletion will successfully return and virtual stick mode will be enabled. This is frustrating because we attempt to avoid sending lots of useless enableVirtualStickControlModeWithCompletion calls unless there's a chance it will work to minimize system load. Currently we must always try to enable virtual stick mode because otherwise we cannot reliably cause it to engage.

I don't have a specific procedure to reproduce this other than simply connect to the vehicle repeatedly and wait for one of the runs in which it will always return false. The vehicle can stay powered on between instances of this behavior. It appears to happen or not happen every time we open a connection to the vehicle, rather than a one-time occurrence before the first successful time we engage virtual stick mode. We are not doing anything with missions before this behavior it seen.

SDK 3.4.1 and 3.5
Phantom 4 Pro (and Phantom 4)
iOS 9.3.5
iPad Mini 4
Xcode 8.2

@oliverou
Copy link
Contributor

Hi @pquimby, Sorry for the confusion. This interface is used to indicate if the virtualStickControlMode is already enabled or not. We will rename it in the future SDK version.

@Michael-DJI
Copy link
Contributor

Hi, did you resolve your issue?
if not, pls report the issue to dev@dji.com it's the official channel to request DJI SDK support now.

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

3 participants