Trouble connecting RaspberryPi 3 with Pixhawk Link timeout, no heartbeat in last 5 seconds

Hi,
i followed http://ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
but when i try to connect with the command: sudo mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft MyCopter" i have this message http://prntscr.com/l7p0zb
Also when i try to run a python script:
from dronekit import connect, VehicleMode
import time
connection_string = “/dev/ttyAMA0”
baud_rate = 115200
print(">>>> Connecting with the UAV <<<")
vehicle = connect(connection_string, baud=baud_rate, wait_ready=True)
i have the message >>> Link timeout, no heartbeat in last 5 seconds
and i can’t find why.

i just found the solution, it has to be baud_rate = 921600 for an unkown reason…

1 Like