Hi!
I am running Ubuntu 22, PX4 1.14, and connected to an external GPS.
I want to log the location when an event is triggered on the GPIO.
However, from what I understand, the location is published to a topic /fmu/out/vehicle_global_position or /fmu/out/vehicle_local_position. Am I at the mercy of the publishing rate of the vehicle_global_position topic and unable to get the exact gps location when the event is triggered?
Is the only solution to use the most recently published value? Or is there some other way to query the flight controller and get the immediate location?