Main Content

飞行数据

读取 Parrot 无人机发送的飞行数据

在使用函数之前,使用 parrot 创建一个 Parrot 对象。您可以读取飞行中的导航数据,例如无人机的高度、方向和速度。

注意

对于 Parrot® Mambo 无人机,用于读取导航数据的函数在无人机着陆状态下返回零。然而,对于 Parrot Bebop2 无人机,这些函数即使在着陆状态下也能返回数据。

函数

readHeightRead current height of Parrot drone
readOrientationRead Euler angles of Parrot drone
readSpeedRead speed of Parrot drone