mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 01:43:33 +08:00
Use gyro at correct rate
This commit is contained in:
@@ -919,11 +919,11 @@ Sensors::gyro_init()
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* set the gyro internal sampling rate up to at leat 800Hz */
|
/* set the gyro internal sampling rate up to at least 760Hz */
|
||||||
ioctl(fd, GYROIOCSSAMPLERATE, 800);
|
ioctl(fd, GYROIOCSSAMPLERATE, 760);
|
||||||
|
|
||||||
/* set the driver to poll at 800Hz */
|
/* set the driver to poll at 760Hz */
|
||||||
ioctl(fd, SENSORIOCSPOLLRATE, 800);
|
ioctl(fd, SENSORIOCSPOLLRATE, 760);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user