I am looking for hardware to measure the state of a vehicle (position, attitude, velocity, etc.), put the data in a byte array and send it via udp wifi.
My question is: How can I access the vehicle state data from C++ script? I checked the examples (https://github.com/emlid/Navio2), but the scripts take the raw sensor and not the processed data (state). Do I need ROS or DroneKit or something, to get direct access to the vehicle state? If so, I’ve got the same question - how to access it from C++ script? Can you point me to an example or something.
Edit: It can also be Python instead of C++, if thats available.
Thank you in advance.