| java.lang.Object | |
| ↳ | dji.sdk.flightcontroller.DJIFlightLimitation |
This class contains the flight status of the aircraft related to the flight limitation, and provides methods to configure the flight limitation.
| 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
| |||||||||||
Constructor.
Gets the maximum flight height limitation from the aircraft.
| callback | The execution callback with the value(s) returned. |
|---|
Gets the maximum flight radius limitation from the aircraft.
| callback | The execution callback with the value(s) returned. |
|---|
Gets whether the maximum flight radius limitation is enabled.
| callback | The execution callback with the value(s) returned. |
|---|
Determines if the maximum flight height has been reached.
true if the aircraft has reached the maximum flight radius.
Sets the maximum flight height limitation for aircraft. MaxHeight value should be in range [20, 500] m.
| maxHeight | Maximum height for the aircraft. |
|---|---|
| callback | The execution callback with the execution result returned. |
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.
| maxRadius | Maximum flight radius for aircraft. |
|---|---|
| callback | The execution callback with the execution result returned. |
Sets whether the maximum flight radius limitation is enabled. If enable is false<.code>, there is no maximum flight radius limitation.
| enabled | Maximum flight radius limitation is enabled. |
|---|---|
| callback | The execution callback with the execution result returned. |