GroundSdk
-
Ground SDK access class.
See moreDeclaration
Swift
@objcMembers public class GroundSdk : NSObject
-
Global GroundSdk configuration
Allows application to configure GroundSdk features. This configuration can be set by adding entries in the application
info.plist
or by setting properties on the config shared instance before creating the firstGroundSdk
instance (the best place for that is theinit
function of yourAppDelegate
).In the application
info.plist
, configuration is set by adding an entryGroundSdk
, typeDictionary
, with the following content:Wifi
(Bool): enable local wifi support. Default istrue
.Usb
(Bool): enable Usb support (for sky controllers). Default istrue
.SupportedDevices
(Array of String): List of all supported devices by the application. Default is all. The devices name that should be given are thedescription
of eachDeviceModel
you want to support. The supported device list is used to restrict the device discovery. Thus, any saved device whose model is restricted, will still be persisted (but never seen again).OfflineSettings
(String): enable offline settings and send them to the drone at connection. Default ismodel
.off
: disablemodel
: share settings between all drones of the same model
CrashReport
(Bool): enable crash reports from drone or remote control to be shared with Parrot. Default istrue
.FlightData
(Bool): enable download flight data files from drone. Default istrue
.FlightLogServer
(String): URL of flight log server. This should be set to enable flight log upload and event log generation and uploadFlightLog
(Bool): enable support of flight logs (from drone or remote control) and event logs (from application). Default istrue
.FlightCameraRecordServer
(String): URL of flight camera record server. This should be set to enable flight camera record upload and event log generation and uploadFcrAnonymizerFqn
(String): Name of the class that will respond to the protocol FcrAnonymizerFqn (full qualified name)FlightCameraRecord
(Bool): enable support of flight camera records (from drone) and event logs (from application). Default istrue
.GutmaLog
(Bool): enable convert flight data files from drone to GUTMA. Default istrue
.BlackBox
(Bool): enable black box recording and sharing these records with Parrot. Default istrue
.FirmwareSync
(Bool): enable firmware synchronization. Default istrue
.AutoConnectionAtStartup
(Bool): Whether or not the auto connection should start immediately when GroundSdk is started. Default isfalse
.AppDefaults
([String: String]): Dictionary that list all plist file names describing the application default values for the devices. Indexed by device model name. Default is empty.EmbeddedFirmwares
(Array of String): List of plist file names that describes the embedded firmwares. Default is empty. Ignored ifFirmwareSync
isfalse
.BlacklistedVersions
(Array of String): List of plist file names that describe the blacklisted firmware versions. Default is empty. Ignored ifFirmwareSync
isfalse
.AutoSelectWifiCountry
(Bool): Whether or not the auto wifi selection, based on reverse geocoding, is used. Default istrue
.Ephemeris
(Bool): Ephemeris files help the drone to be aware of its own gps position faster. Default istrue
.DevToolbox
(Bool): enable development toolbox. Default isfalse
.CellularCellularLogsKb
(Number): Maximum memroy size used by cellular log messages, in kilobytes.
Example: Enable auto-connection at GroundSdk startup and disable offline settings
See more<key>GroundSdk</key> <dict> <key>AutoConnectionAtStartup</key> <true/> <key>OfflineSettings</key> <string>off</string> </dict>
Declaration
Swift
@objcMembers @objc(GSConfig) public class GroundSdkConfig : NSObject
-
A reference to an object that may change.
This is the base class used to access a backend object with an associated observer notified each time this associated object changes. Associated object may be
See morenil
if the corresponding backend object doesn’t exist yet or has been removed. Observer is notified when the backend object is created or removed, and when the ref is created if the backend object exists.Declaration
Swift
public class Ref<T>