Tune
public class Tune
Enable creating and sending a tune to be played on the system.
-
Initializes a new
Tune
plugin.Normally never created manually, but used from the
Drone
helper class instead.Declaration
Swift
public convenience init(address: String = "localhost", port: Int32 = 50051, scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))
Parameters
address
The address of the
MavsdkServer
instance to connect toport
The port of the
MavsdkServer
instance to connect toscheduler
The scheduler to be used by
Observable
s -
Undocumented
See moreDeclaration
Swift
public struct RuntimeTuneError : Error
-
Undocumented
See moreDeclaration
Swift
public struct TuneError : Error
-
An element of the tune
See moreDeclaration
Swift
public enum SongElement : Equatable
-
Tune description, containing song elements and tempo.
See moreDeclaration
Swift
public struct TuneDescription : Equatable
-
Declaration
Swift
public struct TuneResult : Equatable
-
Send a tune to be played by the system.
Declaration
Swift
public func playTune(tuneDescription: TuneDescription) -> Completable
Parameters
tuneDescription
The tune to be played