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(@Nullable 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 and Matrice 300 RTK.

      Input Parameters:
      @Nullable 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 and Matrice 300 RTK. For Matrice 300 RTK, device administrator authentication is required before invoking this method.

      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. For Matrice 300 RTK, device administrator authentication is required before invoking this method.

      Input Parameters:
      @Nullable CommonCallbacks.CompletionCallback callbackCallback that receives the execution result.
      method hasDeviceAdminLoggedIn
      boolean hasDeviceAdminLoggedIn()
      Package:dji.sdk.basestation
      Description:

      true if device administrator has logged in. For Matrice 300 RTK, device administrator authentication is required before changing any settings, including base station's name, base station's password, and base station's referencing location. Device administrator login is required every time when the application is relaunched. Please login with default password 123456, if the base station's password is reset. Supported only by Matrice 300 RTK.

      Return:
      booleanThe result whether login or not.
      Login As Device Admin
      method
      method logInAsDeviceAdmin
      void logInAsDeviceAdmin(@NonNull String password, @Nullable CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.basestation
      Description:

      Log in as base station administrator account with password to change setting. User will need to login again in the following scenarios:
      - Enter the application for the first time.
      - Re-enter after the application restarts.
      - Reset password via the button on the base station.
      - Switch and connect other base stations.
      The default password is 123456. It is only supported by Matrice 300 RTK.

      Input Parameters:
      @NonNull String passwordThe password of base station.
      @Nullable CommonCallbacks.CompletionCallback callbackThe completion callback block that receives the result.
      Login Out
      method
      method logOut
      void logOut(@Nullable CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.basestation
      Description:

      Log out of the base station. It is only supported by Matrice 300 RTK.

      Input Parameters:
      @Nullable CommonCallbacks.CompletionCallback callbackCompletion block that receives the execution result.
      Change Password
      method
      method changePassword
      void changePassword(@NonNull String oldPassword, @NonNull String newPassword, @Nullable CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.basestation
      Description:

      Change the password for current base station. The password must be 6 digits. It is only supported by Matrice 300 RTK.

      Input Parameters:
      @NonNull String oldPasswordThe old password.
      @NonNull String newPasswordThe new password that you want to change.
      @Nullable CommonCallbacks.CompletionCallback callbackThe completion callback that receives the result.
      Set Name
      method
      method setName
      void setName(@NonNull String name, @Nullable CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.basestation
      Description:

      Change the name of the base station. The name is composed of maximum 4 characters or numbers. Please log in before invoking this method. It is only supported by Matrice 300 RTK.

      Input Parameters:
      @NonNull String nameThe name of the base station set by the user.
      @Nullable CommonCallbacks.CompletionCallback callbackCompletion block that receives the execution result.
      Get Name
      method
      method getName
      void getName(@Nullable CommonCallbacks.CompletionCallbackWith<String> callback)
      Package:dji.sdk.basestation
      Description:

      Gets the name of the base station. Please log in before invoking this method. It is only supported by Matrice 300 RTK.

      Input Parameters:
      @Nullable CommonCallbacks.CompletionCallbackWith<String> 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: