DJI Mobile SDK Documentation

      class DJIAircraftYawAction

      @interface DJIAircraftYawAction : DJIMissionAction
      Header:DJIAircraftYawAction.h
      Inherits From:DJIMissionAction
      Description:

      This class represents an aircraft yaw rotation action to be scheduled on the Mission Control timeline. By creating an object of this class and adding it to the timeline, an aircraft will rotate around yaw by the specified angle with the specified speed when the Timeline reaches the action.

      Class Members:
      method initWithRelativeAngle:andAngularVelocity
      - (instancetype _Nullable)initWithRelativeAngle:(double)angle andAngularVelocity:(double)velocity
      Header:DJIAircraftYawAction.h
      Description:

      Initialize with a yaw angle relative to current heading and an angular velocity. The angular velocity has a range of [0, 100] degrees/s and a default value of 20 degrees/s.

      Input Parameters:
      double angleAngle in degrees.
      double velocityVelocity in degrees/s.
      Return:
      instancetype _NullableAn instance of DJIAircraftYawAction.
      method initWithAngle:andIsAbsolute
      - (instancetype _Nullable)initWithAngle:(double)angle andIsAbsolute:(BOOL)isAbsolute
      Header:DJIAircraftYawAction.h
      Description:

      Initialize with a yaw angle relative to current heading or absolute heading against true north. The range of angle is [-180, 180]. This initializer should be preferred when accuracy of the angle is more of a priority than smooth yaw movement.

      Input Parameters:
      double angleAngle in degrees.
      BOOL isAbsoluteYES means angle is the absolute heading against true north. NO means angle is relative to the current heading.
      Return:
      instancetype _NullableAn instance of DJIAircraftYawAction.
      const DJIAircraftYawActionErrorDomain
      extern const NSErrorDomain DJIAircraftYawActionErrorDomain
      Header:DJIAircraftYawAction.h
      Description:

      The error domain used to describe errors produced by the DJIAircraftYawAction object.

      enum DJIAircraftYawActionError
      typedef NS_ENUM(NSInteger, DJIAircraftYawActionError)
      Header:DJIAircraftYawAction.h
      Description:

      Error codes for errors specific to DJIAircraftYawActionErrorDomain.

      Enum Members:
      DJIAircraftYawActionErrorUnknownDefault value when no other value is appropriate.
      DJIAircraftYawActionErrorInvalidRotationSpeedSet rotation speed is not within valid range [0, 100].
      DJIAircraftYawActionErrorInvalidAngleValueSet angle value is not within valid range [-180, 180].