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
Bool contains(NavOption navOpt)
Returns
true
if the nav data contains the given option.- demoData
NavOptionDemo? demoData()
Return the
NavOption.demo
data (if any) from the nav options. Convenience for:navData.getOption(NavOption.demo)
- flags
const NavDataFlags flags
State flags wrapped up in handy getter methods.
- getOption
@
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
NavOption[] optionKeys()
Returns a list of options available via
getOption()
.- seqNum
const Int seqNum
The sequence number of the originating UDP packet.
- visionFlag
const Int visionFlag
Vision flags. (I have no idea!)