Hello all. I am trying to connect to flight controller from companion computer (Raspberry PI 4) via serialport.
/etc/default/arducopter configuration can be seen below:
When I try to connect to flight controller using
pymavlink library on Python (
mavutil.mavlink_connection("/dev/ttyAMA0", baud=115200)), it simply gets timeouted. When I try to run
sudo cat /dev/ttyAMA0 and see if there is any data coming from Navio 2, it is just empty. Which means Navio 2 doesn’t send serial data on
/dev/ttyAMA0. I have tried another port that appears on
ls /dev/tty* but then got
I have set SERIAL0 baudrate to 115200.
Interesting part is I am able to connect to flight controller using MavROS.
How can I connect to flight controller without using MavROS? Any help is appreciated. Thanks!