How do i connect to the Ardupilot using mavproxy?
I have a Navio2 hat on a raspberry pi 4. I want to run a python script on the pi4 to communicate with the Ardupilot running on the pi4. I think i am supposed to use mavproxy to do this. It is already installed in the emlid software. It is looking for a serial port but does not find it. The following is what happens when i try to run mavproxy.py
pi@navio:~/python_scripts $ mavproxy.py
Auto-detected serial ports are:
Connecting to /dev/ttyS0
Connect /dev/ttyS0 source_system=255
Failed to connect to /dev/ttyS0 : Could not configure port: (5, ‘Input/output error’)
It would be helpful to see a python script that connects via mavlink and can get and set some parameters.