public class

DJIFlightLimitation

extends Object
java.lang.Object
   ↳ dji.sdk.flightcontroller.DJIFlightLimitation

Class Overview

This class contains the flight status of the aircraft related to the flight limitation, and provides methods to configure the flight limitation.

Summary

Public Constructors
DJIFlightLimitation()
Constructor.
Public Methods
void getMaxFlightHeight(DJICompletionCallbackWith<Float> callback)
Gets the maximum flight height limitation from the aircraft.
void getMaxFlightRadius(DJICompletionCallbackWith<Float> callback)
Gets the maximum flight radius limitation from the aircraft.
void getMaxFlightRadiusLimitationEnable(DJICompletionCallbackWith<Boolean> callback)
Gets whether the maximum flight radius limitation is enabled.
boolean hasReachedMaxFlightHeight()
Determines if the maximum flight height has been reached.
boolean hasReachedMaxFlightRadius()
void setMaxFlightHeight(float maxHeight, DJICommonCallbacks.DJICompletionCallback callback)
Sets the maximum flight height limitation for aircraft.
void setMaxFlightRadius(float maxRadius, DJICommonCallbacks.DJICompletionCallback callback)
Sets the maximum flight radius limitation for the aircraft.
void setMaxFlightRadiusLimitationEnabled(boolean enabled, DJICommonCallbacks.DJICompletionCallback callback)
Sets whether the maximum flight radius limitation is enabled.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DJIFlightLimitation ()

Constructor.

Public Methods

public void getMaxFlightHeight (DJICompletionCallbackWith<Float> callback)

Gets the maximum flight height limitation from the aircraft.

Parameters
callback The execution callback with the value(s) returned.

public void getMaxFlightRadius (DJICompletionCallbackWith<Float> callback)

Gets the maximum flight radius limitation from the aircraft.

Parameters
callback The execution callback with the value(s) returned.

public void getMaxFlightRadiusLimitationEnable (DJICompletionCallbackWith<Boolean> callback)

Gets whether the maximum flight radius limitation is enabled.

Parameters
callback The execution callback with the value(s) returned.

public boolean hasReachedMaxFlightHeight ()

Determines if the maximum flight height has been reached.

public boolean hasReachedMaxFlightRadius ()

Returns
  • true if the aircraft has reached the maximum flight radius.

public void setMaxFlightHeight (float maxHeight, DJICommonCallbacks.DJICompletionCallback callback)

Sets the maximum flight height limitation for aircraft. MaxHeight value should be in range [20, 500] m.

Parameters
maxHeight Maximum height for the aircraft.
callback The execution callback with the execution result returned.

public void setMaxFlightRadius (float maxRadius, DJICommonCallbacks.DJICompletionCallback callback)

Sets the maximum flight radius limitation for the aircraft. The radius is calculated from the home point. maxRadius value should be in range [15, 500] m.

Parameters
maxRadius Maximum flight radius for aircraft.
callback The execution callback with the execution result returned.

public void setMaxFlightRadiusLimitationEnabled (boolean enabled, DJICommonCallbacks.DJICompletionCallback callback)

Sets whether the maximum flight radius limitation is enabled. If enable is false<.code>, there is no maximum flight radius limitation.

Parameters
enabled Maximum flight radius limitation is enabled.
callback The execution callback with the execution result returned.