Calibration
public class Calibration
Enable to calibrate sensors of a drone such as gyro, accelerometer, and magnetometer.
-
Initializes a new
Calibration
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 RuntimeCalibrationError : Error
-
Undocumented
See moreDeclaration
Swift
public struct CalibrationError : Error
-
Result type.
See moreDeclaration
Swift
public struct CalibrationResult : Equatable
-
Progress data coming from calibration.
Can be a progress percentage, or an instruction text.
See moreDeclaration
Swift
public struct ProgressData : Equatable
-
Perform gyro calibration.
Declaration
Swift
public func calibrateGyro() -> Observable<ProgressData>
-
Perform accelerometer calibration.
Declaration
Swift
public func calibrateAccelerometer() -> Observable<ProgressData>
-
Perform magnetometer calibration.
Declaration
Swift
public func calibrateMagnetometer() -> Observable<ProgressData>
-
Perform board level horizon calibration.
Declaration
Swift
public func calibrateLevelHorizon() -> Observable<ProgressData>
-
Perform gimbal accelerometer calibration.
Declaration
Swift
public func calibrateGimbalAccelerometer() -> Observable<ProgressData>
-
Cancel ongoing calibration process.
Declaration
Swift
public func cancel() -> Completable