FlyDirective
public class FlyDirective : PointAndFlyDirective
A directive requesting the drone to move to a given location.
Note
The provided speed 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 values with regard to the specified location target will result in a failed move.-
Horizontal speed, in meters per second.
Declaration
Swift
public let horizontalSpeed: Double
-
Vertical speed, in meters per second.
Declaration
Swift
public let verticalSpeed: Double
-
Yaw rotation speed, in degrees per second.
Declaration
Swift
public let yawRotationSpeed: Double
-
Drone heading.
Declaration
Swift
public let heading: PointAndFlyHeading
-
init(latitude:
longitude: altitude: gimbalControlMode: horizontalSpeed: verticalSpeed: yawRotationSpeed: heading: ) Constructor.
Declaration
Swift
public init(latitude: Double, longitude: Double, altitude: Double, gimbalControlMode: PointAndFlyGimbalControlMode, horizontalSpeed: Double, verticalSpeed: Double, yawRotationSpeed: Double, heading: PointAndFlyHeading)
Parameters
latitude
target point latitude
longitude
target point longitude
altitude
target point altitude
gimbalControlMode
gimbal control mode
horizontalSpeed
maximum horizontal speed
verticalSpeed
maximum vertical speed
yawRotationSpeed
maximum yaw rotation speed
heading
drone heading
-
Declaration
Swift
public override func isEqual(other: PointAndFlyDirective?) -> Bool
-
Declaration
Swift
public override var description: String { get }