Writing ADS-B Info to a Text File Help

I’m using a Navio2 and raspberry pi running arducopter to control my drone. I have a ping rx on my drone plugged into the navio. I’m wondering how I could get those adsb mavlink messages and write latitude and longitude to a file. I’m open to whatever gcs etc would be necessary. I’m not really sure where to begin so any help is appreciated. Thank you!

I’m using a Navio2 and raspberry pi running arducopter to control my drone.
I have a ping rx on my drone plugged into the navio. I’m wondering how I
could get those adsb mavlink messages and write latitude and longitude to a
file. I’m open to whatever gcs etc would be necessary. I’m not really sure
where to begin so any help is appreciated. Thank you!

You could plug it into the PixHawk and have it relay the messages
normally.

You could run MAVProxy on the Pi with an additional input from the
relevant serial device.