DJI Mobile SDK Documentation

      class DJIRTKBaseStation

      @interface DJIRTKBaseStation : DJIBaseComponent
      Header:DJIRTKBaseStation.h
      Inherits From:DJIBaseComponent
      Description:

      RTK Base Station.

      Class Members:
      Delegate
      property
      property delegate
      @property(nonatomic, weak) id<DJIRTKBaseStationDelegate> delegate
      Header:DJIRTKBaseStation.h
      Description:

      DJI base station delegate.

      See Also:

      DJIRTKBaseStationDelegate

      method getBaseStationReferencingLocationWithCompletion
      - (void)getBaseStationReferencingLocationWithCompletion:(void (^_Nonnull)(CLLocation *_Nullable location, NSError *_Nullable error))completion
      Header:DJIRTKBaseStation.h
      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:
      CLLocation *_Nullable locationThe referencing location of the base station.
      NSError *_Nullable errorError if there is any.
      void (^_Nonnull)(CLLocation *_Nullable location, NSError *_Nullable error) completionCompletion block that receives the execution result.
      method setBaseStationReferencingLocation:withCompletion
      - (void)setBaseStationReferencingLocation:(CLLocation *)location withCompletion:(DJICompletionBlock)completion
      Header:DJIRTKBaseStation.h
      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:
      CLLocation * locationThe referencing location of the base station.
      DJICompletionBlock completionCompletion block that receives the execution result.
      method resetRTKBaseStationLocationWithCompletion
      - (void)resetRTKBaseStationLocationWithCompletion:(DJICompletionBlock)completion
      Header:DJIRTKBaseStation.h
      Description:

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

      Input Parameters:
      DJICompletionBlock completionCompletion block that receives the execution result.
      State Updates
      protocol
      protocol DJIRTKBaseStationDelegate
      @protocol DJIRTKBaseStationDelegate <NSObject>
      Header:DJIRTKBaseStation.h
      Inherits From:NSObject
      Description:

      This protocol provides a delegate method to update the base station state.

      Protocol Methods:

      Protocol Method

      method baseStation:didUpdateBaseStationBatteryState
      required
      - (void)baseStation:(DJIRTKBaseStation *_Nonnull)baseStation didUpdateBaseStationBatteryState:(DJIRTKBaseStationBatteryState *)state
      Header:DJIRTKBaseStation.h
      Description:

      Callback function that updates the RTK base station battery state. Only Supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      DJIRTKBaseStation *_Nonnull baseStationInstance of the Base Station for which battery state will be updated.
      DJIRTKBaseStationBatteryState * stateBase station battery State.
      method baseStation:didUpdateBaseStationState
      required
      - (void)baseStation:(DJIRTKBaseStation *_Nonnull)baseStation didUpdateBaseStationState:(DJIRTKBaseStationState *)state
      Header:DJIRTKBaseStation.h
      Description:

      Callback function that updates the RTK base station state. Only Supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      DJIRTKBaseStation *_Nonnull baseStationInstance of the Base Station for which state will be updated.
      DJIRTKBaseStationState * stateBase station State.
      enum DJIRTKBaseStationLocationType
      typedef NS_ENUM(uint8_t, DJIRTKBaseStationLocationType)
      Header:DJIRTKBaseStationBaseTypes.h
      Description:

      All the possible basestation location type of DJIRTKBaseStationLocationType.

      Enum Members:
      DJIRTKBaseStationLocationTypeAutoBaseStation current location is auto calculateed by BaseStation itself.
      DJIRTKBaseStationLocationTypeManualBaseStation current location is manually set by user.
      DJIRTKBaseStationLocationTypeUnknownUnknown BaseStation location type.