DJI Mobile SDK Documentation

      class BaseStation

      class BaseStation extends BaseComponent implements DJIParamAccessListener
      Package:dji.sdk.basestation
      Inherits From:BaseComponent implements DJIParamAccessListener
      Description:

      RTK Base Station.

      Class Members:
      Referencing Location
      method
      method getBaseStationReferencingLocation
      void getBaseStationReferencingLocation(@NonNull CommonCallbacks.CompletionCallbackWith<LocationCoordinate3D> callback)
      Package:dji.sdk.basestation
      Description:

      Gets the referencing location manually configured to the base station. When a user can get a more accurate location (coordinate with less absolute error) of the base station by using external tools, the accurate location can be set to the base station to improve the accuracy of the aircraft location. If the offset between the referencing location and the location detected by the ground system is larger than 5 meters, the base station will ignore the referencing location. It is only supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      @NonNull CommonCallbacks.CompletionCallbackWith<LocationCoordinate3D> callbackCompletion block that receives the execution result.
      method setBaseStationReferencingLocation
      void setBaseStationReferencingLocation(@NonNull LocationCoordinate3D location, @Nullable CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.basestation
      Description:

      Sets the referencing location of the base station to improve the accuracy. When a user can get a more accurate location (coordinate with less absolute error) of the base station by using external tools, the accurate location can be set to the base station to improve the accuracy of the aircraft location. If the offset between the referencing location and the location detected by the base station is larger than 5 meters, the base station will ignore the referencing location. It is only supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      @NonNull LocationCoordinate3D locationThe referencing location of the base station.
      @Nullable CommonCallbacks.CompletionCallback callbackCompletion block that receives the execution result.
      method resetBaseStationReferencingLocation
      void resetBaseStationReferencingLocation(@Nullable CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.basestation
      Description:

      Reset RTK base station's location. This will make base station's location type became AUTO. The previously set location by setBaseStationReferencingLocation will be invalid.

      Input Parameters:
      @Nullable CommonCallbacks.CompletionCallback callbackCompletion block that receives the execution result.
      method addBaseStationBatteryStateUpdatedCallback
      void addBaseStationBatteryStateUpdatedCallback(@NonNull BaseStationBatteryState.Callback callback)
      Package:dji.sdk.basestation
      Description:

      Adds a callback to receive the latest base station battery state. Only Supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      @NonNull BaseStationBatteryState.Callback callbackCallback to receive base station battery state.
      method addBaseStationStateUpdatedCallback
      void addBaseStationStateUpdatedCallback(@NonNull BaseStationState.Callback callback)
      Package:dji.sdk.basestation
      Description:

      Adds a callback to receive the latest base station state. Only Supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      @NonNull BaseStationState.Callback callbackCallback to receive base station state.
      method removeBaseStationBatteryStateUpdatedCallback
      void removeBaseStationBatteryStateUpdatedCallback(@NonNull BaseStationBatteryState.Callback callback)
      Package:dji.sdk.basestation
      Description:

      Removes a callback that receives the latest base station battery state. Only Supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      @NonNull BaseStationBatteryState.Callback callbackCallback to receive base station battery state.
      method removeBaseStationStateUpdatedCallback
      void removeBaseStationStateUpdatedCallback(@NonNull BaseStationState.Callback callback)
      Package:dji.sdk.basestation
      Description:

      Removes a callback that receives the latest base station state.

      Input Parameters:
      @NonNull BaseStationState.Callback callbackCallback to receive base station state.
      enum BaseStationLocationType
      enum BaseStationLocationType
      Package:dji.common.basestation
      Description:

      All the possible basestation location type of BaseStationLocationType.

      Enum Members:
      AUTOBaseStation current location is auto calculateed by BaseStation itself.
      MANUALBaseStation current location is manually set by user.
      UNKNOWNUnknown BaseStation location type.
      Class Members: