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

No getProductInstance() and getCameraInstance() #18

Open
adityajain07 opened this issue Feb 17, 2017 · 1 comment
Open

No getProductInstance() and getCameraInstance() #18

adityajain07 opened this issue Feb 17, 2017 · 1 comment
Labels

Comments

@adityajain07
Copy link

capture

There is no getProductInstance() and getCameraInstance() defined in MainActivity.Java.

So one will need to add below in Mainactivity.java:
public static synchronized DJIBaseProduct getProductInstance() {
if (null == mProduct) {
mProduct = DJISDKManager.getInstance().getDJIProduct();
}
return mProduct;
}

public DJICamera getCameraInstance() {
    return (DJICamera)this.mComponentMap.get(DJIBaseProduct.DJIComponentKey.Camera);
}

PS: Please let me know, if I am wrong anywhere :)

@oliverou
Copy link
Contributor

Hi @adityajain07 , these two methods have been defined in the FPVDemoApplication already, you can use them directly as shown in the sample code. Why you need to define them again?

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

No branches or pull requests

3 participants