I would like to obtain the drone (Parrot ANAFI AI) current speed from Olympe via the “AirSpeedChanged”. The following code retrieves the desired data every second and saves it in a text file.
If you look at the documentation of the AirSpeedChanged message, it is noted that the message is no longer supported (It was only supported on Disco). Anafi Ai has no air speed sensor, and thus cannot provide this information.
The SpeedChanged message is probably the way to go. You should be able to derive the ground speed of the drone from the 3D speed vector by taking the norm of the [speedX, speedY, 0] vector.