# Is it possible to log data with uniform sampling rate?

**URL:** <https://discuss.px4.io/t/is-it-possible-to-log-data-with-uniform-sampling-rate/42615>\
**Category:** Flight Testing & Log Analysis\
**Created:** [November 27, 2024, 8:01am UTC](https://discuss.px4.io/t/is-it-possible-to-log-data-with-uniform-sampling-rate/42615 "2024-11-27T08:01:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheng-Fan\_Wen](https://discuss.px4.io/user_avatar/discuss.px4.io/sheng-fan_wen/32/17889_2.png) [@Sheng-Fan\_Wen](https://discuss.px4.io/u/Sheng-Fan_Wen)\
**Post date:** [November 27, 2024, 8:01am UTC](https://discuss.px4.io/t/is-it-possible-to-log-data-with-uniform-sampling-rate/42615/1 "2024-11-27T08:01:00Z")

</div>

Hi, I’m using version 1.14 with cube orange+, tring to log the flying data to the SD card.

I followed the instruction listed here:

> **[Logging | PX4 Guide (main)](https://docs.px4.io/main/en/dev_log/logging.html#configuration)**
>
> PX4 User and Developer Guide

and modifyed the logger\_topics.txt like this:  
vehicle\_attitude 0 0  
vehicle\_attitude\_setpoint 0 0  
vehicle\_torque\_setpoint 0 0  
vehicle\_rates\_setpoint 0 0  
vehicle\_thrust\_setpoint 0 0  
vehicle\_angular\_velocity 0 0

But the logged data has the sampling rate somewhat like this:

 ![image (1)](https://discuss.px4.io/uploads/default/original/3X/6/e/6e25fba8cc9722afe81f7e18c3bb027525bb75c3.png)

the sampling rate jitters between 18, 20 and 22 Hz.

I personally consider it as a problem of logging module, and the control system should be still working under a fixed sampling rate? Is it correct? If so, how can I get a logged data with uniform sampling rate? Thanks in advance.
