DJI Mobile SDK Documentation

      class DJIRCAircraftMapping

      @interface DJIRCAircraftMapping : NSObject
      Header:DJIRemoteControllerBaseTypes.h
      Inherits From:NSObject
      SDK Key:DJIRemoteControllerKey.DJIRemoteControllerParamCustomAircraftMapping
      Description:

      The object representing the stick mapping configuration of the remote controller.

      Class Members:
      Left Vertical
      property
      property leftVertical
      @property(nonatomic, readonly) DJIRCAircraftStickMapping leftVertical
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      The mapping configuration for the left stick on the vertical axis.

      See Also:

      DJIRCAircraftStickMapping

      Left Horizontal
      property
      property leftHorizontal
      @property(nonatomic, readonly) DJIRCAircraftStickMapping leftHorizontal
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      The mapping configuration for the left stick on the horizontal axis.

      See Also:

      DJIRCAircraftStickMapping

      Right Vertical
      property
      property rightVertical
      @property(nonatomic, readonly) DJIRCAircraftStickMapping rightVertical
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      The mapping configuration for the right stick on the vertical axis.

      See Also:

      DJIRCAircraftStickMapping

      Right Horizontal
      property
      property rightHorizontal
      @property(nonatomic, readonly) DJIRCAircraftStickMapping rightHorizontal
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      The mapping configuration for the right stick on the horizontal axis.

      See Also:

      DJIRCAircraftStickMapping

      Mapping With Style
      class method
      class method mappingWithStyle
      +(instancetype) mappingWithStyle:(DJIRCAircraftMappingStyle)style
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Creates an instance of DJIRCAircraftMapping with the given style.

      Input Parameters:
      DJIRCAircraftMappingStyle styleError code.
      class method mappingWithCustomMappingLeftVertical:leftHorizontal:rightVertical:rightHorizontal
      +(instancetype) mappingWithCustomMappingLeftVertical:(DJIRCAircraftStickMapping)leftVertical
      leftHorizontal:(DJIRCAircraftStickMapping)leftHorizontal
      rightVertical:(DJIRCAircraftStickMapping)rightVertical
      rightHorizontal:(DJIRCAircraftStickMapping)rightHorizontal
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Creates an instance of DJIRCAircraftMapping with a custom style and given mapping configurations.

      Input Parameters:
      DJIRCAircraftStickMapping leftVerticalDJIRCAircraftStickMapping object.
      DJIRCAircraftStickMapping leftHorizontalDJIRCAircraftStickMapping object.
      DJIRCAircraftStickMapping rightVerticalDJIRCAircraftStickMapping object.
      DJIRCAircraftStickMapping rightHorizontalDJIRCAircraftStickMapping object.
      enum DJIRCAircraftStickMappingTarget
      typedef NS_ENUM (uint8_t, DJIRCAircraftStickMappingTarget)
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      The list of controls that may be mapped on a stick.

      Enum Members:
      DJIRCAircraftStickMappingTargetNoneNone
      DJIRCAircraftStickMappingTargetThrottleControls Throttle
      DJIRCAircraftStickMappingTargetPitchControls Pitch
      DJIRCAircraftStickMappingTargetRollControls Roll
      DJIRCAircraftStickMappingTargetYawControls Yaw
      DJIRCAircraftStickMappingUnknownUnknown.
      struct DJIRCAircraftStickMapping
      typedef struct
      {
      DJIRCAircraftStickMappingTarget target;
      BOOL isReversed;
      } DJIRCAircraftStickMapping
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      A struct representing a mapping configuration which includes the particular control and whether or not it is reversed.

      Struct Members:
      DJIRCAircraftStickMappingTarget targetThe defined control to be mapped.
      BOOL isReversedwhether or not the control is to be reversed.
      enum DJIRCAircraftMappingStyle
      typedef NS_ENUM (uint8_t, DJIRCAircraftMappingStyle)
      Header:DJIRemoteControllerBaseTypes.h
      SDK Key:DJIRemoteControllerKey.DJIRemoteControllerParamAircraftMappingStyle
      Description:

      The predefined mapping styles available to use. Custom allow to specify all mapping configurations.

      Enum Members:
      DJIRCAircraftMappingStyle1Style 1.
      DJIRCAircraftMappingStyle2Style 2.
      DJIRCAircraftMappingStyle3Style 3.
      DJIRCAircraftMappingStyleCustomCustom Style. Requires all mapping configurations.
      DJIRCAircraftMappingStyleUnknownUnknown style.