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. This is an easier control mode for racing games.To activate the combined yaw mode, you must set both the bit 1 of the control_level configuration, and the bit 1 of the function parameters.
Note : This configuration does not need to be changed to use the new Absolute Control mode.
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
Str id { private set }The current application ID.
Corresponds to the
CUSTOM:application_idconfiguration key.- name
Str name { private set }The current application's name.
Corresponds to the
CUSTOM:application_descconfiguration key.Int navDataOptionsWhen using
navDataDemo, this configuration allows the application to ask for other navData packets.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.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
Corresponds to the
VIDEO:bitrate_control_modeconfiguration key.- videoBitrateStorage
Int videoBitrateStorage { private set }The bitrate (kbps) of the recording stream, both for USB and WiFi record.
Corresponds to the
VIDEO:bitrate_storageconfiguration key.