Geofence
public class Geofence
Enable setting a geofence.
-
Initializes a new
Geofenceplugin.Normally never created manually, but used from the
Dronehelper class instead.Declaration
Swift
public convenience init(address: String = "localhost", port: Int32 = 50051, scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))Parameters
addressThe address of the
MavsdkServerinstance to connect toportThe port of the
MavsdkServerinstance to connect toschedulerThe scheduler to be used by
Observables -
Undocumented
See moreDeclaration
Swift
public struct RuntimeGeofenceError : Error -
Undocumented
See moreDeclaration
Swift
public struct GeofenceError : Error -
Point type.
See moreDeclaration
Swift
public struct Point : Equatable -
Polygon type.
See moreDeclaration
Swift
public struct Polygon : Equatable -
Result type.
See moreDeclaration
Swift
public struct GeofenceResult : Equatable -
Upload a geofence.
Polygons are uploaded to a drone. Once uploaded, the geofence will remain on the drone even if a connection is lost.
Declaration
Swift
public func uploadGeofence(polygons: [Polygon]) -> CompletableParameters
polygonsPolygon(s) representing the geofence(s)
-
Clear all geofences saved on the vehicle.
Declaration
Swift
public func clearGeofence() -> Completable
View on GitHub
Install in Dash
Geofence Class Reference