andyp

  • **
  • 52
Interface with Arduino via UAVTalk
« 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

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Interface with Arduino via UAVTalk
« Reply #1 on: June 06, 2017, 12:25:35 am »
Quote
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.

andyp

  • **
  • 52
Re: Interface with Arduino via UAVTalk
« Reply #2 on: June 06, 2017, 06:25:11 am »
OK, but it only contains the settings and not the data objects, where the GPS position is ...

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Interface with Arduino via UAVTalk
« Reply #3 on: June 06, 2017, 08:45:48 am »
Quote
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

filnet

  • *****
  • 113
Re: Interface with Arduino via UAVTalk
« Reply #4 on: June 06, 2017, 09:23:52 am »
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.

andyp

  • **
  • 52
Re: Interface with Arduino via UAVTalk
« Reply #5 on: June 06, 2017, 07:40:41 pm »
OK, that's it.

I used File -> Export UAV Settings, which hasn't got the data.

andyp

  • **
  • 52
Re: Interface with Arduino via UAVTalk
« Reply #6 on: June 06, 2017, 11:34:06 pm »
OK, but I only need one object, so hardcoding is not that aweful ...

I saw a plugin called antennatrack. What is this?