Hello. Could you let me know which file is executing the code for displaying the real-time location of drone and which variable the location information is being stored in?(Ex: latitude, longitude, altitude)
Taking a step back: what are you trying to do?
I believe this might be an XY problem.
I think I asked the question incorrectly. Apologies.
I would like to log the current position (latitude, longitude, altitude) of the registered drone. To log this information, I need to know which variable stores the drone’s current position.
How can I get this information?
Log, aha. And you don’t want to use the ulg, so the log by PX4 on the SD card?
For real-time inspection, there is also the MAVLink Inspector.
But if you really want to log it, you will have to either:
- add that into QGC somehow (e.g. here)
- use something like MAVSDK to record it on the side. For this, you would split the MAVLink traffic from the drone to MAVSDK and QGC using something like mavlink-router.
Thanks to your help, I am now able to display the current drone’s position in the log.
1 Like