I am encountering the following issue testing the setup for Precision Landing. I am using a Pixhawk + RPi 4 build (dojo kit).
dronekit 2.9.2
MAVProxy 1.8.34
pymavlink 2.4.14
python 2.7.16
opencv 3.2.0
pip 18.1
Linux raspberrypi 5.10.17-v7l+
Copter 4.0.7
pi@raspberrypi:~/video2calibration/pidronescripts/dk $ python arm_test.py
WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds
ERROR:dronekit.mavlink:Exception in MAVLink input loop
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/dronekit/mavlink.py", line 211, in mavlink_thread_in
fn(self)
File "/usr/local/lib/python2.7/dist-packages/dronekit/__init__.py", line 1371, in listener
self._heartbeat_error)
APIException: No heartbeat in 30 seconds, aborting.
Traceback (most recent call last):
File "arm_test.py", line 10, in <module>
vehicle = connect('udp:127.0.0.1:14550',wait_ready=True)
File "/usr/local/lib/python2.7/dist-packages/dronekit/__init__.py", line 3166, in connect
vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout)
File "/usr/local/lib/python2.7/dist-packages/dronekit/__init__.py", line 2275, in initialize
raise APIException('Timeout in initializing connection.')
dronekit.APIException: Timeout in initializing connection.