Speed

class Speed

Requested speed for the flight.

When attached to a flight Directive, allows to specify the desired horizontal, vertical and rotation speed values for the flight. Note that the provided values are considered maximum values: the drone will try its best to respect the specified speeds, but the actual speeds may be lower depending on the situation. Specifying incoherent speed values with regard to the specified location target will result in a failed move.

Constructors

Link copied to clipboard
constructor(@FloatRange(from = 0.0, fromInclusive = false) horizontal: Double, @FloatRange(from = 0.0, fromInclusive = false) vertical: Double, @FloatRange(from = 0.0, fromInclusive = false) rotation: Double)
Constructor.

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
@FloatRange(from = 0.0, fromInclusive = false)
open fun getHorizontalMax(): Double
Retrieves requested (maximum) horizontal speed.
Link copied to clipboard
@FloatRange(from = 0.0, fromInclusive = false)
open fun getRotationMax(): Double
Retrieves requested (maximum) rotation speed.
Link copied to clipboard
@FloatRange(from = 0.0, fromInclusive = false)
open fun getVerticalMax(): Double
Retrieves requested (maximum) vertical speed.
Link copied to clipboard
open fun hashCode(): Int