-
The integer that describes the type of the MAVLink command.
Declaration
Swift
public var commandType: Int { get }
-
Returns the parameter at the given index.
Declaration
Swift
public func parameter(at index: Int) -> Double
Parameters
index
The index of the parameter. It must be in the range [0,6]. Accessing outside of this range will lead to a crash.
-
Constructor from generic MAVLink parameters.
Declaration
Swift
public init(rawType: Int, frame: Frame = .relative, param1: Double = .nan, param2: Double = .nan, param3: Double = .nan, param4: Double = .nan, param5: Double = .nan, param6: Double = .nan, param7: Double = .nan)
Parameters
rawType
the integer that describes the type of the MAVLink command.
frame
the reference frame of the coordinates.
param1
the first parameter of the command.
param2
the second parameter of the command.
param3
the third parameter of the command.
param4
the fourth parameter of the command.
param5
the fifth parameter of the command.
param6
the sixth parameter of the command.
param7
the seventh parameter of the command.
-
Constructor from generic MAVLink parameters.
Declaration
Swift
public init(rawType: Int, frame: Frame = .relative, parameters: [Double]) throws
Parameters
rawType
the integer that describes the type of the MAVLink command.
frame
the reference frame of the coordinates.
parameters
the parameters of the command.