mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 03:41:35 +08:00
Increased MPU6K poll and sampling rate to 1 KHz
This commit is contained in:
@@ -763,11 +763,11 @@ Sensors::accel_init()
|
|||||||
|
|
||||||
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||||
|
|
||||||
/* set the accel internal sampling rate up to at leat 500Hz */
|
/* set the accel internal sampling rate up to at leat 1000Hz */
|
||||||
ioctl(fd, ACCELIOCSSAMPLERATE, 500);
|
ioctl(fd, ACCELIOCSSAMPLERATE, 1000);
|
||||||
|
|
||||||
/* set the driver to poll at 500Hz */
|
/* set the driver to poll at 1000Hz */
|
||||||
ioctl(fd, SENSORIOCSPOLLRATE, 500);
|
ioctl(fd, SENSORIOCSPOLLRATE, 1000);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user