Sending data to Raspberry Pi

Hi,

I’m working on a project where I have to read data from the autopilot in real time in raspberry pi using a python code. How can I send the RPi specific coordinates of current location in real time to store in a separate variable for later use (some calculations needed)? (serial connection between autopilot and RPi)
Even just sending a 1/0 to make it store these coordinates would be ok.

Thanks.

1 Like

The Pymavlink library (https://github.com/ArduPilot/pymavlink) will help you read the MAVLink telemetry from ArduPilot.

I am able to read data from autopilot using Dronekit-Python library, and I can look through this library too. But how do I “trigger” the RPi in real time to save a specific data, while only being interfaced with Mission Planner?

Anyone who can help?

I will suggest you to https://www.learnpython.org/