DJI Mobile SDK Documentation

      class DUXCompassWidget

      @interface DUXCompassWidget : DUXWidget
      Header:DUXCompassWidget.h
      Inherits From:DUXWidget
      Display:

      uilib_image

      Compound widget that aggregates attitude and location data into one widget. The widget shows:

      • Heading of the aircraft relative to the pilot
      • True north relative to pilot and aircraft
      • Roll and pitch of aircraft
      • Yaw and pitch of gimbal
      • Position of aircraft relative to pilot
      • Distance of aircraft from pilot
      • Home location
      Usage:

      Preferred Aspect Ratio: 1:1. Check DUXDashboardWidget for an example of its usage.

      Class Members:
      property locationManagerAccuracy
      @property(assign, nonatomic) CLLocationAccuracy locationManagerAccuracy
      Header:DUXCompassWidget.h
      Description:

      The accuracy needed for the CLLocationManager instance in the compass widget. By default, the accuracy is best for navigation, but can be reduced if needed.