# Raw Logging Dropping Out

**URL:** <https://discuss.cubepilot.org/t/raw-logging-dropping-out/14255>\
**Category:** Cube Autopilot\
**Created:** [14 October 2024 16:53 UTC](https://discuss.cubepilot.org/t/raw-logging-dropping-out/14255 "2024-10-14T16:53:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![opti](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/o/3be4f8/32.png) [@opti](https://discuss.cubepilot.org/u/opti)\
**Post date:** [14 October 2024 16:53 UTC](https://discuss.cubepilot.org/t/raw-logging-dropping-out/14255/1 "2024-10-14T16:53:25Z")

</div>

Hello all,

I am trying to use the raw logging feature on the Cube Orange Plus to characterize motions and vibrations while in flight. I have set up raw logging and set it to 8k Hz, but I see that there are times where logging stops for up to 700 ms. I bought a new SD card (30 MB/s) hoping to fix the issue, but I saw marginal benefit. It seems to be logging the GYR at 2000 Hz , with 100 Hz samples every 15 samples. There are also periods where it is logging at 2000Hz with jumps to 200 Hz.

I was wondering if anyone has experienced this or corrected this issue before. I think I can handle the jumps to 100-200 Hz, but I would like to eliminate the large gaps on the order of 100s of ms.

Thanks!

---

<div class="post-metadata">

**Author:** ![sidbh](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/sidbh/32/7358_2.png) [@sidbh](https://discuss.cubepilot.org/u/sidbh)\
**Post date:** [16 October 2024 07:12 UTC](https://discuss.cubepilot.org/t/raw-logging-dropping-out/14255/2 "2024-10-16T07:12:44Z")

</div>

@opti just to confirm you are using this procedure to collect raw imu data [Measuring Vibration with IMU Batch Sampler — Copter documentation](https://ardupilot.org/copter/docs/common-imu-batchsampling.html)

---

<div class="post-metadata">

**Author:** ![opti](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/o/3be4f8/32.png) [@opti](https://discuss.cubepilot.org/u/opti)\
**Post date:** [16 October 2024 17:39 UTC](https://discuss.cubepilot.org/t/raw-logging-dropping-out/14255/3 "2024-10-16T17:39:27Z")

</div>

Thank you for the reply Siddarth, I double checked the parameters and there were some that were different. I walked through the steps again and I seem to be getting better timing now. There are still some spikes where it drops below 10 Hz, which I think we can tolerate, but should I expect it to be better? I am attaching a graph of the differential times. I see that it defaults to around 60 kHz, 3.3 kHz, and can jump to under 10 Hz.

Thank you again!

 ![IMU_diff_new_zoom](https://discuss.cubepilot.org/uploads/default/original/2X/3/3cfa54551a49fe7c69e701cea5b71c4b20e23970.png)  
 ![IMU_time_diff_new](https://discuss.cubepilot.org/uploads/default/original/2X/e/eec10a0913ce83b316f0dc86f6313cd60e328ef1.png)

---

<div class="post-metadata">

**Author:** ![sidbh](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/sidbh/32/7358_2.png) [@sidbh](https://discuss.cubepilot.org/u/sidbh)\
**Post date:** [17 October 2024 05:54 UTC](https://discuss.cubepilot.org/t/raw-logging-dropping-out/14255/4 "2024-10-17T05:54:51Z")

</div>

@opti Worth trying disabling CAN (if enabled), potentially other IMUs to see if that makes any difference.

I know in ardupilot the speed is limited to around 12.5MBytes/s (25MHz frequency) for SDCard, so SDCard faster than that might not be very helpful. It can be increased, hardware is capable, software will need some work.

---

<div class="post-metadata">

**Author:** ![opti](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/o/3be4f8/32.png) [@opti](https://discuss.cubepilot.org/u/opti)\
**Post date:** [17 October 2024 14:38 UTC](https://discuss.cubepilot.org/t/raw-logging-dropping-out/14255/5 "2024-10-17T14:38:49Z")

</div>

These steps did not improve the logging any. I think this is sufficient for what I am trying to do.

I will note that the speed should not be a problem using the size of the log file (Cube writes bin but log is worst case) and the maximum timestamp, the write speed was less than 1 MB/S.

Thank you for your responses!
