PX4 logging frequency
-
I need to log PX4 sensors and GPS data as fast as possible. Right now the logging intervals are too slow. I found this forum post: https://discuss.px4.io/t/high-speed-logging/25242/4 .
According to this post I should change the rates in this file:
https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/logger/logged_topics.cppBut this means that have to recompile the whole PX4 firmware (right?) and then upload it. Isn't there an easier way? Isn't there a way to change the logging intervals from a configuration file or through parameters or something like that?
-
I need to log PX4 sensors and GPS data as fast as possible. Right now the logging intervals are too slow. I found this forum post: https://discuss.px4.io/t/high-speed-logging/25242/4 .
According to this post I should change the rates in this file:
https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/logger/logged_topics.cppBut this means that have to recompile the whole PX4 firmware (right?) and then upload it. Isn't there an easier way? Isn't there a way to change the logging intervals from a configuration file or through parameters or something like that?
@boga Which log topics specifically are you wanting to increase the rates on? There is a PX4 parameter SDLOG_PROFILE that can enable some high rate logging topics.
-
I need to log PX4 sensors and GPS data as fast as possible. Right now the logging intervals are too slow. I found this forum post: https://discuss.px4.io/t/high-speed-logging/25242/4 .
According to this post I should change the rates in this file:
https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/logger/logged_topics.cppBut this means that have to recompile the whole PX4 firmware (right?) and then upload it. Isn't there an easier way? Isn't there a way to change the logging intervals from a configuration file or through parameters or something like that?
@boga If SDLOG_PROFILE doesn't have what you are looking for then you can set up a custom set of log topics / rates from a file. You don't need to recompile PX4 to use it. https://docs.px4.io/main/en/dev_log/logging.html#sd-card-configuration
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login