I would need to send some data (attitude, position and velocity) from the Pixhawk to an external arduino.
Unfortunately I cannot use serial4 since it is already occupied by another sensor.
The option I’m evaluating are:
- Serial5, but it seems to be attached to the nsh console and I don’t know how to disable it.
- SPI connector, but I’m having hard time to understand how to do it.
Concerning option number 1:
How can I disable Serial5 to get it working as a general serial uart?
Concerning option number 2:
Do you have any example code or suggestion to work with the SPI external interface on the Pixhawk?