const classafParrotSdk2::NavData

sys::Obj
  afParrotSdk2::NavData

Standard navigation data returned by the drone. Common data can be found with the state() and demoData() methods, whilst a wealth of debug data can be found in the NavOptions and the getOption() method.

Unfortunately, the NavOption data is not really documented in the Drone SDK so make of it what you may.

To tell the drone what data to return, see DroneAppConfig.navDataOptions.

contains

Source

Bool contains(NavOption navOpt)

Returns true if the nav data contains the given option.

demoData

Source

NavOptionDemo? demoData()

Return the NavOption.demo data (if any) from the nav options. Convenience for:

navData.getOption(NavOption.demo)
flags

Source

const NavDataFlags flags

State flags wrapped up in handy getter methods.

getOption

Source

@Operator
Obj? getOption(NavOption navOpt)

Returns NavOption data. Example:

demoData := navData[NavOption.demo]

Returns null if it doesn't exist.

Option data is usually a map of maps using strings as keys. Inspect the data to find out.

optionKeys

Source

NavOption[] optionKeys()

Returns a list of options available via getOption().

seqNum

Source

const Int seqNum

The sequence number of the originating UDP packet.

visionFlag

Source

const Int visionFlag

Vision flags. (I have no idea!)