ChangeSpeedCommand
public final class ChangeSpeedCommand : MavlinkStandard.MavlinkCommand
MAVLink command which allows to change the drone speed.
-
Speed type.
See moreDeclaration
Swift
public enum SpeedType : Int, CustomStringConvertible
-
Speed type.
Declaration
Swift
public var speedType: SpeedType { get }
-
Speed, in meters/second.
Declaration
Swift
public var speed: Double { get }
-
Relative speed change or absolute.
A
false
value means the speed change is absolute where atrue
value means the speed change is a relative change from the current speed.Declaration
Swift
public var relative: Bool { get }
-
Constructor.
Declaration
Swift
public init(speedType: SpeedType, speed: Double, relative: Bool = false, frame: Frame = .command)
Parameters
speedType
speed type
speed
speed, in meters/second
relative
boolean indicate wether the speed change is absolute or relative
frame
the reference frame of the coordinates