const classafParrotSdk2::DroneAppConfig
sys::Obj afParrotSdk2::DroneAppConfig
Drone config in the Application category. App config encapsulates config an application may require.
Create a new application by means of:
drone.config.app("My App Name")
Future code may then access the same app by not passing an app name:
drone.config.app.combinedYawMode = true
- combinedYawMode
Bool combinedYawModeIf
truethen roll commands (moveLeft()&moveRight()) generate roll + yaw based turns so the drone banks like an aeroplane / leans into the corners. This is an easier control mode for racing games.Note, unlike other SDKs, to enable
combinedYawModeyou need only set this config totrue. The move commands are automatically updated for you.Corresponds to the
CONTROL:control_levelconfiguration key.- deleteAll
Void deleteAll()Deletes ALL application data from the drone. Use with caution.
- deleteMe
Void deleteMe()Deletes this application data from the drone.
- dump
Str dump(Bool dumpToStdOut := true)Dumps all fields to debug string.
- id
Int id { private set }The current application ID.
Corresponds to the
CUSTOM:application_idconfiguration key.- make
new make(Drone drone)Creates a new
DroneAppConfiginstance for the given Drone. Note this class holds no state.- name
Str name { private set }The current application's name.
Corresponds to the
CUSTOM:application_descconfiguration key.Int navDataOptionsAllows the drone to send other packets of NavData.
Use the flag values of the NavOption enum to add / or flags values together. Example:
drone.config.session.app.navDataOptions = NavOption.demo.flag + NavOption.visionDetect.flag
To receive all option data:
drone.config.session.app.navDataOptions = 0x0FFF_FFFF
Corresponds to the
GENERAL:navdata_optionsconfiguration key.- videoBitrate
Int videoBitrateSets the bitrate of the video transmission (kilobits per second) when
videoBitrateControlModeis set toMANUAL. Typical values range from 500 to 4000 kbps.Can only be set with a non-default application ID. Throws an Err if this is not the case.
Corresponds to the
VIDEO:bitrateconfiguration key.- videoBitrateControlMode
Int videoBitrateControlModeEnables the automatic bitrate control of the video stream. Enabling this configuration reduces bandwidth used by the video stream under bad Wi-Fi conditions, reducing the commands latency.
0 = DISABLED - Bitrate set to videoMaxBitrate session config 1 = DYNAMIC - Video bitrate varies between [250 - videoMaxBitrate] kbps 2 = MANUAL - Video stream bitrate is fixed to videoBitrate
Can only be set with a non-default application ID. Throws an Err if this is not the case.
Corresponds to the
VIDEO:bitrate_control_modeconfiguration key.- videoBitrateStorage
Int videoBitrateStorage { private set }The bitrate (kilobits per second) of the recording stream, both for USB and WiFi record.
Corresponds to the
VIDEO:bitrate_storageconfiguration key.