Raspberry Pi使用DroneKit与Pixhawk正确连接

时间:2016-03-12 22:52:58

标签: raspberry-pi

我在使用从Raspberry Pi到Pixhawk自动驾驶仪的连接时遇到问题。

我已按照指南进行接线(串行连接)并安装了Pi而没有任何问题。我正在运行Raspbian Jessie与DroneKit从github下载并于2016年3月12日建成。我也正在运行Raspberry Pi直接(插入USB和HDMI - 而不是通过SSH)并使用QGroundControl将我的无人机设置为四轴飞行器。一切正常,但当我通过Python与DroneKit连接时,我收到垃圾邮件

  

HEARTBEAT的消息处理程序中的异常

  

模式65536在mavlink定义

上不可用

但我可以向Pixhawk索取信息并收回正确的信息(海拔和电池电压)。

1 个答案:

答案 0 :(得分:0)

You need to install dronekit from the source to make it work, do this:

    git clone https://github.com/dronekit/dronekit-python.git
    cd ./dronekit-python
    sudo python setup.py build
    sudo python setup.py install