I am trying to increase the sampling rate of the DataFlash logs being saved to the MicroSD card on Pixhawk. (Primarily raw IMU data). I'm using a Pixhawk 2 board with Mission Planner and QGroundControl.

I can't figure out how to use "sdlog2" considering the terminal no longer works to my knowledge. I've also messed around with the LOG_BITMASK parameter but nothing actually increases the sample rate.

From what I heard here https://discuss.ardupilot.org/t/change-the-sd-card-data-logging-rat... , the default rate is 25Hz (although I am truly getting only ~10Hz) but it can supposedly go up to 250Hz. I found the following line in the Copter source code which I presume is the task scheduler:

If I were to change the "25" to a higher integer (up to 250) and rebuild should that work?

If anyone knows of a better way to do this I would greatly appreciate it.



Views: 506

Reply to This

© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service