LibrePilot Forum
General Category => General Discussion => Topic started by: andyp on June 05, 2017, 11:41:22 pm
-
Hello,
I like to interface with the GCS via Ardiuno and UAVTalk. I like to build a antenna tracker and ground station. Then I like to calculate direction and Elevation of the UAV to use a directional video antenna. Very simple and only a few lines of code.
Is there a simple way to get the object IDs without compiling the source code?
Regards
Andy
-
Is there a simple way to get the object IDs without compiling the source code?
From GCS, Help > Export UAV data will export settings and data fields with object IDs you want.
-
OK, but it only contains the settings and not the data objects, where the GPS position is ...
-
From GCS, Help > Export UAV data will export settings and data fields with object IDs you want.
Did you try if the exported file contents Data or not ?
Help > Export UAV data
-
GCS can mirror the UAVTallk traffic via udp in binary format.
There is also the stream plugin that will mirror traffic via tcp in a json format.
Object IDs are a hash of the object structure so any time the object structure is changed, the corresponding ID will change too.
This means that hardcoding the IDs in your application is usually a bad idea (unless you track a few objects and are ready to update your app any time the ID changes).
We have few generators that translate the xml object description to various code forms (for GCS, fligh, java, arduino, ...).
They are located here ./ground/uavobjgenerator/generators. Using or adapting one of those for your own needs is relatively simple.
-
OK, that's it.
I used File -> Export UAV Settings, which hasn't got the data.
-
OK, but I only need one object, so hardcoding is not that aweful ...
I saw a plugin called antennatrack. What is this?