Developer settings for Anafi UKR¶
Some settings are necessary when it comes to customize the drone autopilot. Those settings are accessible through the mobile application FreeFlight8.
Note
this section concerns Anafi UKR only. for Anafi Ai, please refer to this section.
Go to parameters (top right corner), select the Advanced tab (top, third tab) and select the Developer tab (bottom left).
In this tab, two developer settings are available:
Shell access¶
To enable this option, a security ADB public key needs to be authorized by the drone firmware. A default ADB public key is available on your local machine at this path:
/home/[user]/.android/adbkey.pub
A new ADB key pair can be generated with this following command:
$ adb keygen [myfile]
Copy-paste the ADB public key in the text area that appears after enabling the Shell access option in FreeFlight8.
Reboot the drone. The remote shell can now be accessed with the following commands:
$ adb connect anafi-ai.local:9050
$ adb shell
Note
The drone must be connected to the computer with a USB cable.
Air SDK missions logs¶
When this option is enabled, the missions can emit log entries to rotating log files. To learn more about how to write logs from your mission, please refer to the ulog documentation.
Note
Mission telemetry is also exported to the client logs when its section
name is prefixed with airsdk@.
See Telemetry for details on producing and consuming telemetry
sections.
Important
/!\ Mission logs are not encrypted and all missions and other users have access to the logs. Therefore sensitive information should not be logged by a mission, and before a mission is distributed logs should be cleaned up /!\
To retrieve mission logs you have to plug your drone to a computer with a USB cable. The logs will be available at /missions-data/FDR/log.bin
These files can be read with the Parrot Logan tool. Logan can be installed with the following command (it is assumed that steps described in section Adding Linux packages are already completed):
$ sudo apt-get install parrot-tools-logan-lite
Note
To retrieve mission logs correctly, make sure these two settings are enabled in FreeFlight8:
In the Developer tab (top right corner → Advanced → Developer), enable the Air SDK missions logs option. This allows missions to emit log entries.
In the Account tab, make sure that Anonymous data sharing is enabled. This setting is required for the logs to be stored and accessible.
Live access to mission logs¶
Regardless of the previous setting, mission logs are available within an adb shell session with the following command:
$ ulogcat -b autopilot