DJI Mobile SDK Documentation

      class LaserMeasureInformation

      class LaserMeasureInformation
      Package:dji.common.camera
      Description:

      The class is used to save laser sensor information which includes the laser sensor switch status, the target object information and laser state. The laser sensor must be at least 3m from the target point. Only supported by Zenmuse H20 Series.

      Class Members:
      Target Location
      method
      method getTargetLocation
      LocationCoordinate3D getTargetLocation()
      Package:dji.common.camera
      Description:

      Gets the target object's location measured by the laser sensor.

      Return:
      LocationCoordinate3DAn object of LocationCoordinate3D.
      Target Distance
      method
      method getTargetDistance
      float getTargetDistance()
      Package:dji.common.camera
      Description:

      Gets the range to the target object.

      Return:
      floatA float value.
      Target Point
      method
      method getTargetPoint
      PointF getTargetPoint()
      Package:dji.common.camera
      Description:

      Gets the relative target point base the lens origin point which measures by the laser sensor. The range for x and y is from 0 to 1000. The point [0, 0] represents the top-left angle of the screen.

      Return:
      PointFAn object of PointF.
      Error
      method
      method getLaserError
      LaserError getLaserError()
      Package:dji.common.camera
      Description:

      Gets the laser error from the laser sensor.

      Return:
      LaserErrorAn object of LaserError.
      enum LaserError
      @EXClassNullAway
      enum LaserError
      Package:dji.common.camera
      Description:

      The enum class represents laser sensor's measuring state.

      Enum Members:
      NORMALThe laser sensor's measuring state is normal.
      TOO_CLOSEThe laser sensor is too close to the target object.
      TOO_FARThe laser sensor is too far away from the target object.
      NO_SIGNALThe laser sensor has no data signal.
      UNKNOWNUnknown State.
      Class Members: