Trying to set up pi 0 as onboard computer. connecting telem2 to pi0. trying to get c_uart_interface_example to work.
building example on pi 0 - seems to work fine.
entering nsh on pixracer and issuing 'mavlink start -d /dev/ttyACM0 as example requires.
This gets:
WARN [mavlink] Maximum MAVLink instance count of 4 reached.
and does NOT spew the typical mavlink msg stream.
run mavlink control anyhow - just to see. it Hangs waiting for messages.
any thoughts? are there really already 4 mavlink streams active? how do i check/alter?
cannot get c_uart_interface_example to completely work on pixracer. this is a preamble to offboard computing with pi 0.
followed directions, but found that all mavlink sessions have already been started on pixracer. brief effort to add more sessions - but seemed more involved than this exercise should need.
decided to use debug port uart/ftdi for console access. powered pixracer with battery to avoid creation of final mavlink that comes with powering usb.
‘screen /dev/ttyUSB0 57600 8N1’ does start nsh via debug port.
‘mavlink start -d /dev/ttyS5’ does start mavlink on debug port - produces typical mavlink stream on console.
then close screen.
‘./mavlink_control -d /dev/ttyUSB0’ looks like its going to work - but hangs after first read:
seth@chimp:~/dev/px4/c_uart_interface_example$ ./mavlink_control -d /dev/ttyUSB0
OPEN PORT
Connected to /dev/ttyUSB0 with 57600 baud, 8 data bits, no parity, 1 stop bit (8N1)
START READ THREAD
CHECK FOR MESSAGES
Found
GOT VEHICLE SYSTEM ID: 1
GOT AUTOPILOT COMPONENT ID: 1