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 and DroneConfig.navDataDemo.
- demoData
NavOptionDemo? demoData()Return the
NavOptionDemodata (if any) from the nav options. Convenience for:navData.getOption(NavOption.demo)
- flags
const NavDataFlags flagsState flags wrapped up in handy getter methods.
- getOption
@Operator
Obj? getOption(NavOption navOpt)Returns
NavOptiondata. Example:demoData := navData[NavOption.demo]
Returns
nullif 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 seqNumThe sequence number of the originating UDP packet.
- visionFlag
const Int visionFlagVision flags. (I have no idea!)