Difference between revisions of "Explorer/RaspberryPi/Autopilot"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
<configure name="MODEM_BAUD" value="B115200"/> | <configure name="MODEM_BAUD" value="B115200"/> | ||
</module> | </module> | ||
telemetry file: | |||
<mode name="default" key_press="d"> | |||
<message name="AUTOPILOT_VERSION" period="11.1"/> | |||
<message name="DL_VALUE" period="1.1"/> | |||
<message name="ROTORCRAFT_STATUS" period="1.2"/> | |||
<message name="ROTORCRAFT_FP" period="0.25"/> | |||
<message name="ALIVE" period="2.1"/> | |||
<message name="INS_REF" period="5.1"/> | |||
<message name="ROTORCRAFT_NAV_STATUS" period="1.6"/> | |||
<message name="WP_MOVED" period="1.3"/> | |||
<message name="GPS_INT" period=".25"/> | |||
<message name="INS" period=".25"/> | |||
<message name="ENERGY" period="2.5"/> | |||
<message name="DATALINK_REPORT" period="5.1"/> | |||
<message name="STATE_FILTER_STATUS" period="3.2"/> | |||
<message name="AIR_DATA" period="1.3"/> | |||
</mode> | |||
paparazzi/sw/ground_segment/tmtc/server | paparazzi/sw/ground_segment/tmtc/server |
Revision as of 04:58, 22 July 2020
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>
telemetry file:
<mode name="default" key_press="d"> <message name="AUTOPILOT_VERSION" period="11.1"/> <message name="DL_VALUE" period="1.1"/> <message name="ROTORCRAFT_STATUS" period="1.2"/> <message name="ROTORCRAFT_FP" period="0.25"/> <message name="ALIVE" period="2.1"/> <message name="INS_REF" period="5.1"/> <message name="ROTORCRAFT_NAV_STATUS" period="1.6"/> <message name="WP_MOVED" period="1.3"/> <message name="GPS_INT" period=".25"/> <message name="INS" period=".25"/> <message name="ENERGY" period="2.5"/> <message name="DATALINK_REPORT" period="5.1"/> <message name="STATE_FILTER_STATUS" period="3.2"/> <message name="AIR_DATA" period="1.3"/> </mode>
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