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
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 :)
The text was updated successfully, but these errors were encountered:
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?
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;
}
PS: Please let me know, if I am wrong anywhere :)
The text was updated successfully, but these errors were encountered: