Key VISION_ASSISTED_POSITIONING_ENABLED not supported on M300
456 1 2021-6-1
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());
    }
});

2021-6-1
Use props
Mats Bohlinsson
lvl.4
Flight distance : 1838077 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.
2021-6-2
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules