Please select Into the mobile phone version | Continue to access the computer ver.
Key VISION_ASSISTED_POSITIONING_ENABLED not supported on M300
38 1 6-1 15:25
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_odtl46RTpTES
lvl.2

Australia
Offline

Having issues getting the Vision assisted Positioning state back using the Mobile SDK for a M300.
I get back an error saying "Not supported"

Is there a way of knowing if the Vision Poisitioning is enabled as you can enable nad disable it using the DJI Pilot app?

Thanks


KeyManager.getInstance().getValue(FlightControllerKey.create(FlightControllerKey.VISION_ASSISTED_POSITIONING_ENABLED), new GetCallback() {
    @Override
    public void onSuccess(@NonNull Object value) {
        setVisionPositionInUse((Boolean) value);
    }
    @Override
    public void onFailure(@NonNull DJIError error) {
        ToastUtils.setResultToToast("VISION_ASSISTED_POSITIONING_ENABLED Failed. " + error.toString());
    }
});

6-1 15:25
Use props
Mats Bohlinsson
Second Officer
Flight distance : 1558228 ft
Sweden
Offline

It used to read the parameter:
g_config.mvo_cfg.mvo_func_en_0

I don't know if it has changed. You don't say what sdk version and flightcontroller version you use.
6-2 13:13
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules