Attitude
public struct Attitude : Equatable
Type for attitude body angles in NED reference frame (roll, pitch, yaw and thrust)
-
Undocumented
Declaration
Swift
public let rollDeg: Float
-
Undocumented
Declaration
Swift
public let pitchDeg: Float
-
Undocumented
Declaration
Swift
public let yawDeg: Float
-
Undocumented
Declaration
Swift
public let thrustValue: Float
-
Initializes a new
Attitude
.Declaration
Swift
public init(rollDeg: Float, pitchDeg: Float, yawDeg: Float, thrustValue: Float)
Parameters
rollDeg
Roll angle (in degrees, positive is right side down)
pitchDeg
Pitch angle (in degrees, positive is nose up)
yawDeg
Yaw angle (in degrees, positive is move nose to the right)
thrustValue
Thrust (range: 0 to 1)
-
Declaration
Swift
public static func == (lhs: Attitude, rhs: Attitude) -> Bool