mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 01:29:33 +00:00
* Unified parameters storage. * Store parameters in flash on the hardware. * Store parameters in text file in simulation. * Work with parameters in command line. * Support parameters in MAVLink for working with parameters in QGC.
10 lines
266 B
C++
10 lines
266 B
C++
#include <filesystem>
|
|
|
|
std::filesystem::path getPluginPath() {
|
|
Dl_info dl_info;
|
|
if (dladdr((void*)&getPluginPath, &dl_info) == 0) {
|
|
throw std::runtime_error("Unable to determine plugin path using dladdr.");
|
|
}
|
|
return std::filesystem::path(dl_info.dli_fname);
|
|
}
|