TakeOffCommand
public final class TakeOffCommand : MavlinkStandard.MavlinkCommand
MAVLink command which allows to take off.
-
Latitude of the implicitly added waypoint, in degrees.
Declaration
Swift
public var latitude: Double { get }
-
Longitude of the implicitly added waypoint, in degrees.
Declaration
Swift
public var longitude: Double { get }
-
Altitude of the implicitly added waypoint above take off point, in meters.
Declaration
Swift
public var altitude: Double { get }
-
Desired yaw angle at waypoint, relative to the North in degrees (clockwise). Use NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.).
Declaration
Swift
public var yaw: Double { get }
-
Constuctor.
If a 0/0/0 (latituted/longitude/altitude) value is passed in no implicit waypoint is added.
Declaration
Swift
public init(yaw: Double = .nan, latitude: Double = 0.0, longitude: Double = 0.0, altitude: Double = 0.0, frame: Frame = .relative)
Parameters
yaw
desired yaw angle at waypoint, relative to the North in degrees (clockwise). A NaN value uses the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.).
latitude
latitude of the implicitly added waypoint, in degrees.
longitude
longitude of the implicitly added waypoint, in degrees.
altitude
altitude of the implicitly added waypoint above take off point, in meters.
frame
the reference frame of the coordinates.