DJI Mobile SDK Documentation

      class ObstacleAvoidanceSensorState

      class ObstacleAvoidanceSensorState
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Current state of obstacle avoidance sensor.

      Class Members:
      Check Upward Obstacle Avoidance Sensor
      method
      method isUpwardVisualObstacleAvoidanceSensorWorking
      boolean isUpwardVisualObstacleAvoidanceSensorWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if upward visual obstacle avoidance sensor is working.

      Return:
      booleanA boolean value to check upward obstacle avoidance sensor working.
      Check Left Side Obstacle Avoidance Sensor
      method
      method isLeftSideVisualObstacleAvoidanceSensorWorking
      boolean isLeftSideVisualObstacleAvoidanceSensorWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if left side visual obstacle avoidance sensor is working.

      Return:
      booleanA boolean value to check left side obstacle avoidance sensor working.
      Check Right Side Obstacle Avoidance Sensor
      method
      method isRightSideVisualObstacleAvoidanceSensorWorking
      boolean isRightSideVisualObstacleAvoidanceSensorWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if right side visual obstacle avoidance sensor is working.

      Return:
      booleanA boolean value to check right side obstacle avoidance sensor working.
      Check Backward Obstacle Avoidance Sensor
      method
      method isBackwardVisualObstacleAvoidanceSensorWorking
      boolean isBackwardVisualObstacleAvoidanceSensorWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if backward visual obstacle avoidance sensor is working.

      Return:
      booleanA boolean value to check backward obstacle avoidance sensor working.
      Check Forward Obstacle Avoidance Sensor
      method
      method isForwardVisualObstacleAvoidanceSensorWorking
      boolean isForwardVisualObstacleAvoidanceSensorWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if forward visual obstacle avoidance sensor is working.

      Return:
      booleanA boolean value to check forward obstacle avoidance sensor working.
      Check Downward Obstacle Avoidance Sensor
      method
      method isDownwardVisualObstacleAvoidanceSensorWorking
      boolean isDownwardVisualObstacleAvoidanceSensorWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if downward visual obstacle avoidance sensor is working.

      Return:
      booleanA boolean value to check downward obstacle avoidance sensor working.
      Check Obstacle Avoidance Sensors In Vertical Direction
      method
      method areVisualObstacleAvoidanceSensorsInVerticalDirectionWorking
      boolean areVisualObstacleAvoidanceSensorsInVerticalDirectionWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if visual obstacle avoidance sensors in vertical direction are working.

      Return:
      booleanA boolean value to check obstacle avoidance sensors in vertical direction.
      method areVisualObstacleAvoidanceSensorsInVerticalDirectionEnabled
      boolean areVisualObstacleAvoidanceSensorsInVerticalDirectionEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the visual obstacle avoidance sensors in vertical direction are enabled or not.

      Return:
      booleanA boolean value to check the obstacle avoidance sensor in vertical direction is enabled or not.
      Check Obstacle Avoidance Sensors In Horizontal Direction
      method
      method areVisualObstacleAvoidanceSensorsInHorizontalDirectionWorking
      boolean areVisualObstacleAvoidanceSensorsInHorizontalDirectionWorking()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Determines if visual obstacle avoidance sensors in horizontal direction are working.

      Return:
      booleanA boolean value to check obstacle avoidance sensors in horizontal direction.
      Check Upward Obstacle Avoidance Sensor Enabled
      method
      method isUpwardVisualObstacleAvoidanceSensorEnabled
      boolean isUpwardVisualObstacleAvoidanceSensorEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the upward visual obstacle avoidance sensor is enabled or not.

      Return:
      booleanA boolean value to check upward obstacle avoidance sensor enabled or not.
      Check Left Side Obstacle Avoidance Sensor Enabled
      method
      method isLeftSideVisualObstacleAvoidanceSensorEnabled
      boolean isLeftSideVisualObstacleAvoidanceSensorEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the left side visual obstacle avoidance sensor is enabled or not.

      Return:
      booleanA boolean value to check left side obstacle avoidance sensor enabled or not.
      Check Right Side Obstacle Avoidance Sensor Enabled
      method
      method isRightSideVisualObstacleAvoidanceSensorEnabled
      boolean isRightSideVisualObstacleAvoidanceSensorEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the right side visual obstacle avoidance sensor is enabled or not.

      Return:
      booleanA boolean value to check right side obstacle avoidance sensor enabled or not.
      Check Backward Obstacle Avoidance Sensor Enabled
      method
      method isBackwardVisualObstacleAvoidanceSensorEnabled
      boolean isBackwardVisualObstacleAvoidanceSensorEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the backward visual obstacle avoidance sensor is enabled or not.

      Return:
      booleanA boolean value to check the backward obstacle avoidance sensor is enabled or not.
      Check Forward Obstacle Avoidance Sensor Enabled
      method
      method isForwardVisualObstacleAvoidanceSensorEnabled
      boolean isForwardVisualObstacleAvoidanceSensorEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the forward visual obstacle avoidance sensor is enabled or not.

      Return:
      booleanA boolean value to check the forward obstacle avoidance sensor is enabled or not.
      Check Downward Obstacle Avoidance Sensor Enabled
      method
      method isDownwardVisualObstacleAvoidanceSensorEnabled
      boolean isDownwardVisualObstacleAvoidanceSensorEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the downward visual obstacle avoidance sensor is enabled or not.

      Return:
      booleanA boolean value to check the downward obstacle avoidance sensor is enabled or not.
      Check Obstacle Avoidance Sensors In Horizontal Direction Enabled
      method
      method areVisualObstacleAvoidanceSensorsInHorizontalDirectionEnabled
      boolean areVisualObstacleAvoidanceSensorsInHorizontalDirectionEnabled()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Whether the visual obstacle avoidance sensors in horizontal direction are enabled or not.

      Return:
      booleanA boolean value to check the obstacle avoidance sensor in horizontal direction is enabled or not.