LogFiles
public class LogFiles
Allow to download log files from the vehicle after a flight is complete. For log streaming during flight check the logging plugin.
-
Initializes a new
LogFiles
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 RuntimeLogFilesError : Error
-
Undocumented
See moreDeclaration
Swift
public struct LogFilesError : Error
-
Progress data coming when downloading a log file.
See moreDeclaration
Swift
public struct ProgressData : Equatable
-
Log file entry type.
See moreDeclaration
Swift
public struct Entry : Equatable
-
Result type.
See moreDeclaration
Swift
public struct LogFilesResult : Equatable
-
Get List of log files.
Declaration
Swift
public func getEntries() -> Single<[Entry]>
-
Download log file.
Declaration
Swift
public func downloadLogFile(entry: Entry, path: String) -> Observable<ProgressData>
-
Download log file synchronously.
Declaration
Swift
public func downloadLogFile(entry: Entry, path: String) -> Single<ProgressData>
Parameters
entry
Entry of the log file to download.
path
Path of where to download log file to.
-
Erase all log files.
Declaration
Swift
public func eraseAllLogFiles() -> Completable