Explorer/RaspberryPi/Autopilot

From PaparazziUAV
Revision as of 10:49, 23 June 2020 by Xp31 (talk | contribs)
Jump to navigation Jump to search

The RaspberryPi Zero is connected to the Apogee autopilot board using an UART.
The bi-directional telemetry is send to the GCS using the wifi

  • On the RaspberryPi:
sudo apt-get install socat
socat -u udp-listen:4243,reuseaddr,fork /dev/ttyAMA0,raw,echo=0,b115200 &
socat -u /dev/ttyAMA0,raw,echo=0,b115200 udp-sendto:GCS_IP:4242 &
  • On the GCS:
<module name="telemetry" type="transparent">
  <configure name="MODEM_PORT" value="UART1"/>
  <configure name="MODEM_BAUD" value="B115200"/>
</module>
paparazzi/sw/ground_segment/tmtc/server 
paparazzi/sw/ground_segment/cockpit/gcs 
paparazzi/sw/ground_segment/tmtc/link  -udp

To confirm bidirectional connection, change a setting and check the updated value in the GCS

Explorer/RaspberryPi