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

Source

Bool combinedYawMode

If true then 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 combinedYawMode you need only set this config to true. The move commands are automatically updated for you.

Corresponds to the CONTROL:control_level configuration key.

deleteAll

Source

Void deleteAll()

Deletes ALL application data from the drone. Use with caution.

deleteMe

Source

Void deleteMe()

Deletes this application data from the drone.

dump

Source

Str dump(Bool dumpToStdOut := true)

Dumps all fields to debug string.

id

Source

Int id { private set }

The current application ID.

Corresponds to the CUSTOM:application_id configuration key.

make

Source

new make(Drone drone)

Creates a new DroneAppConfig instance for the given Drone. Note this class holds no state.

name

Source

Str name { private set }

The current application's name.

Corresponds to the CUSTOM:application_desc configuration key.

Source

Int navDataOptions

Allows 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_options configuration key.

videoBitrate

Source

Int videoBitrate

Sets the bitrate of the video transmission (kilobits per second) when videoBitrateControlMode is set to MANUAL. 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:bitrate configuration key.

videoBitrateControlMode

Source

Int videoBitrateControlMode

Enables 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_mode configuration key.

videoBitrateStorage

Source

Int videoBitrateStorage { private set }

The bitrate (kilobits per second) of the recording stream, both for USB and WiFi record.

Corresponds to the VIDEO:bitrate_storage configuration key.