LibrePilot Forum
General Category => General Discussion => Topic started by: TadyTheFish on June 03, 2016, 08:14:47 pm
-
Hello!
I'm trying to communicate with my revo and i'm having trouble getting the ObjectIDs.. Is there any simpler way to get them without downloading the source code?
The IDs change with each version and i need to update them...
Thank you!
-
Hi!
you need the source code and use the uavobjectgenerator, or write your own parser for the UAVO xml files.
If you are more specific about what you are trying to do, maybe I can give you a hint or two.
Best regards,
Marc
-
I'm using an arduino to interpret telemetry data.... (this is just for fun)... I had an old OLED collecting dust and i had some fun with it... anyway i need object IDs for FLIGHTSTATUS_OBJID and ATTITUDESTATE_OBJID... I'm using UAVtalk library for arduino... The main goal is to make some leds that can tell me when the quad is armed and some alarms... i dont like the WS2812 function because the blinking table can't be customized plus this is way more fun, some programming and learning :)
-
Is it this library?
https://github.com/cdaller/Arduino-Openpilot-UAVTalk
They have hardcoded OBJID in the UAVTalk.h file. You have to edit those to match your version.
There is no way around downloading the code and generating the objects.
If you are using 15.09, the codes you are looking for are 0xe33e5d4e for flightstatus and 0xd7e0d964 for attitudestate.
-
Yes i know the codes are hardcoded ;) and i downloaded the source, installed the toolchain and this little command helped me
mingw32-make all_revolution
so the compiler made me the firmware and then i just looked insde LibrePilot\build\firmware\uavobjects and opened flightstatus.h and attitudestate.h
The Arduino was working before already but with newer firmware then i burned my Revo mini and now i bought a Revolution. But for now i'm sticking with 15.09. In the development versions of GCS the modelView and PFd are not working. I wanted to use GPS with my quad but from when i started flying until now i can see that it's better to fly without... you learn more and you don't have to wait for gps fix ;) plus i had bug problems with internal AND external Mag sensors... now i have 3 flight modes... manual, manual with cruise control and altitude hold :) i'm playing around with my quad :)
But thank you for your trouble! if i wasn't stubborn and i didn't mess around with MSYS2 i would have needed those codes badly!!
Thank you again dear friend!!!! :)
-
You're welcome.
Please share what you made once done, sounds interesting ;-)
-
will do :)
-
Hi
Did you get things working? I'm trying to do something similar and have run into an issue with 15_09:
https://forum.librepilot.org/index.php?topic=2108.msg15171#msg15171