I bought a Pixhawk orange cube. Then update Arducopter to version 4.0.7 and “Warning: dronekit: Link timeout, no heartbeat in last 5 seconds.” i got the error. I updated Dronekit to latest version 2.9.2 to resolve the error. I updated PyMavlink to version 2.4.15. The error message is gone, but there is no message about whether the connection is established or not. However, when an error occurs on Mission Planner (For example, Critical: autopilot: PreArm: radio failsafe) and we solve this error on Mission Planner, we can display that we have resolved the error on the terminal. (Warning: autopilot: radio failsafe cleared.) Then we wait for the connection to occur, but nothing happens.
Here are the versions I use:
Pymavlink 2.4.15
Dronekit 2.9.2
Python 3.6.9
OpenCV 4.5.0
ArduCopter 4.0.7
I’ve also attached the output of my terminal screen.