DJI Mobile SDK Documentation

      class IRTKCenter

      interface IRTKCenter
      Package:dji.v5.manager.interfaces
      Description:

      The class to manage RTK module. It is used to get an instance of chihiro network RTK, CMCC network RTK, ustom network RTK or RTK base station and provides the initialization of chihiro network RTK or custom network RTK, the connection and configuration of RTK base station.

      Note:
      When calling KeyMultiControlRequestPairing pair the remote controller to CHANNEL_B, RTK functions will not be available.


      Supported since MSDK 5.0.0

      Class Members:
      method getQXRTKManager
      INetworkRTKManager getQXRTKManager()
      Package:dji.v5.manager.interfaces
      Description:

      Get an instance of chihiro NetworkRTKManager. It is used to initialize and enable chihiro network RTK service.

      Supported since MSDK 5.0.0

      Return:
      INetworkRTKManagerReturn an instance of chihiro NetworkRTKManager.
      method getCMCCRTKManager
      INetworkRTKManager getCMCCRTKManager()
      Package:dji.v5.manager.interfaces
      Description:

      Get an instance of CMCC NetworkRTKManager. It is used to initialize and enable CMCC network RTK service.

      Supported since MSDK 5.1.0

      Return:
      INetworkRTKManagerReturn an instance of CMCC NetworkRTKManager.
      method getCustomRTKManager
      INetworkRTKManager getCustomRTKManager()
      Package:dji.v5.manager.interfaces
      Description:

      Get an instance of custom NetworkRTKManager. It is used to initialize and enable custom network RTK service.

      Supported since MSDK 5.0.0

      Return:
      INetworkRTKManagerReturn an instance of custom NetworkRTKManager.
      method getRTKStationManager
      IRTKStationManager getRTKStationManager()
      Package:dji.v5.manager.interfaces
      Description:

      Get an instance of RTKStationManager. It is used to connect and configure the RTK base station.

      Supported since MSDK 5.0.0

      Return:
      IRTKStationManagerReturn an instance of RTKStationManager.
      method setAircraftRTKModuleEnabled
      void setAircraftRTKModuleEnabled(boolean isEnabled, CommonCallbacks.CompletionCallback callback)
      Package:dji.v5.manager.interfaces
      Description:

      Enable or disable the RTK module of an aircraft. You must set this method before starting the motor, otherwise, this method is ineffective. Passtruein means to enable the RTK module. The aircraft has to read RTK data to take off. Also, the flight controller must use the accurate location data given by the RTK module. Passfalsemeans to disable the RTK module, the flight controller will no longer use the location data from the RTK module.

      Supported since MSDK 5.0.0

      Input Parameters:
      boolean isEnabledtruemeans to enable the RTK module of an aircraft.
      CommonCallbacks.CompletionCallback callbackReturn the result of execution.
      method getAircraftRTKModuleEnabled
      void getAircraftRTKModuleEnabled(CommonCallbacks.CompletionCallbackWithParam<Boolean> callback)
      Package:dji.v5.manager.interfaces
      Description:

      Get whether the RTK module of an aircraft is enabled or disabled.

      Supported since MSDK 5.0.0

      Input Parameters:
      CommonCallbacks.CompletionCallbackWithParam<Boolean> callbackReturn the result of execution.
      method setRTKReferenceStationSource
      void setRTKReferenceStationSource(RTKReferenceStationSource source, CommonCallbacks.CompletionCallback callback)
      Package:dji.v5.manager.interfaces
      Description:

      Set the RTK reference station source of an aircraft. The RTK module of an aircraft provides chihiro network RTK, CMCC network RTK, custom network RTK and DJI's D-RTK 2 base station to select.
      Note:
      After setting the RTK reference station source, you should restart the aircraft.


      Supported since MSDK 5.0.0

      Input Parameters:
      RTKReferenceStationSource sourceThe RTK reference station source of an aircraft
      CommonCallbacks.CompletionCallback callbackReturn the result of execution.
      method getRTKReferenceStationSource
      void getRTKReferenceStationSource(CommonCallbacks.CompletionCallbackWithParam<RTKReferenceStationSource> callback)
      Package:dji.v5.manager.interfaces
      Description:

      Get the RTK reference station source of an aircraft.

      Supported since MSDK 5.0.0

      Input Parameters:
      CommonCallbacks.CompletionCallbackWithParam<RTKReferenceStationSource> callbackReturn the result of execution.
      method setRTKMaintainAccuracyEnabled
      void setRTKMaintainAccuracyEnabled(boolean enabled, CommonCallbacks.CompletionCallback callback)
      Package:dji.v5.manager.interfaces
      Description:

      enabled or disabled maintain positioning accuracy mode. In case of an RTK module communication error, the aircraft will autonomously maintain the current RTK status with gradually decreasing accurcy. The aircraft will exit RTK if the connection is not re-established within 10 minutes.

      Supported since MSDK 5.0.0

      Input Parameters:
      boolean enabled’‘TRUE‘’ to enabled maintain positioning accuracy mode.
      CommonCallbacks.CompletionCallback callbackReturn the result of execution.
      method getRTKMaintainAccuracyEnabled
      void getRTKMaintainAccuracyEnabled(CommonCallbacks.CompletionCallbackWithParam<Boolean> callback)
      Package:dji.v5.manager.interfaces
      Description:

      Get if the maintain positioning accuracy mode is enabled.

      Supported since MSDK 5.0.0

      Input Parameters:
      CommonCallbacks.CompletionCallbackWithParam<Boolean> callbackReturn the result of execution.
      method addRTKLocationInfoListener
      void addRTKLocationInfoListener(RTKLocationInfoListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Add the listener of RTK location information.

      Supported since MSDK 5.0.0

      Input Parameters:
      RTKLocationInfoListener listenerThe listener of RTK location information.
      method removeRTKLocationInfoListener
      void removeRTKLocationInfoListener(RTKLocationInfoListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Remove the listener of RTK location information.

      Supported since MSDK 5.0.0

      Input Parameters:
      RTKLocationInfoListener listenerThe listener of RTK location information.
      method clearAllRTKLocationInfoListener
      void clearAllRTKLocationInfoListener()
      Package:dji.v5.manager.interfaces
      Description:

      Remove all listener of RTK location information.

      Supported since MSDK 5.0.0

      method addRTKSystemStateListener
      void addRTKSystemStateListener(RTKSystemStateListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Add the listener of the RTK system state.

      Supported since MSDK 5.0.0

      Input Parameters:
      RTKSystemStateListener listenerThe listener of RTK system state.
      method removeRTKSystemStateListener
      void removeRTKSystemStateListener(RTKSystemStateListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Remove the listener of the RTK system state.

      Supported since MSDK 5.0.0

      Input Parameters:
      RTKSystemStateListener listenerThe listener of RTK system state.
      method clearAllRTKSystemStateListener
      void clearAllRTKSystemStateListener()
      Package:dji.v5.manager.interfaces
      Description:

      Remove all listeners of the RTK system state.

      Supported since MSDK 5.0.0

      enum RTKReferenceStationSource
      enum RTKReferenceStationSource implements JNIProguardKeepTag
      Package:dji.sdk.keyvalue.value.rtkbasestation
      Description:

      The reference station source of an RTK module.

      Supported since MSDK 5.0.0

      Enum Members:
      QX_NETWORK_SERVICEChihiro netowrk RTK reference station.
      NTRIP_NETWORK_SERVICENTRIP netowrk RTK reference station. If you want to use CMCC network RTK, please set this type.
      CUSTOM_NETWORK_SERVICECustom netowrk RTK reference station.
      BASE_STATIONRTK base station reference station.
      Class Members:
      enum RTKPositioningSolution
      enum RTKPositioningSolution implements JNIProguardKeepTag
      Package:dji.sdk.keyvalue.value.rtkmobilestation
      Description:

      RTK positioning solution.

      Supported since MSDK 5.0.0

      Enum Members:
      NONENo RTK positioning solution. Possible reason: No enough satellites in view, not enough time to lock satellites, and the connection between aircraft and base station is broken.
      SINGLE_POINTSingle Point state.
      FLOATFloat state.
      FIXED_POINTFixed Point state, most accurate state.
      Class Members:
      enum GNSSType
      enum GNSSType implements JNIProguardKeepTag
      Package:dji.sdk.keyvalue.value.rtkmobilestation
      Description:

      GNSS system type.

      Supported since MSDK 5.0.0

      Enum Members:
      GPSGPS system.
      GLONASSGLONASS system.
      GALILEOGALILEO system.
      BEIDOUBEIDOU system.
      Class Members: