save critical data
-
Hello all,
I want to have the critical data (voxl-inspect-cpu, voxl-inspect-battery) of a flight saved during the flight time to use them later offline. I would appreciate it if you could tell me how I can do that by providing some details for help.
Best,
-
@Pooyan You could use voxl-logger with the -w option to save raw data. You would then need to post process though.
It might make things easier to ```
https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-logger/-/blob/master/tools/voxl-logger.cpp?ref_type=headsWe're happy to incorporate merge requests if you go that route!
-
The source code for
voxl-inspect-cpu
is here (the data is coming fromvoxl-cpu-monitor
and displayed byvoxl-inspect-cpu
.and for
voxl-inspect-battery
is here here . The battery data is coming as a mavlink message via MPA and displayed usingvoxl-inspect-battery
.So you can use
voxl-logger
, as suggested above to log the needed data and parse it offline -- you can use the source code of theinspect
tools for guidance. -
@Alex-Kushleyev @Moderator Great thank you. now I want to have an application to analyze data online and based on that turn on or off another application. I already have tried the voxl-cross-template but now I want to write my own application for that. Can you please provide me with some tips for that?
And to check the syntax errors in the application while writing and implementing it, may you please give me some hints?
I appreciate that so much.
-
@Pooyan Our applications share data using Modal Pipe Architecture (MPA). The foundation for that is the libmodal-pipe library. All of our code is open so you can look at examples of applications that publish data via MPA and others that consume data. This can be the basis for your custom application.
-
@Eric-Katzfey Thank you so much for the information.