Run accel/gyro at 500Hz as intended.

This commit is contained in:
px4dev 2012-08-25 18:31:12 -07:00
parent a1b17326a4
commit 665014a3e0
1 changed files with 2 additions and 2 deletions

View File

@ -439,7 +439,7 @@ Sensors::accel_init()
warn("WARNING: failed to set minimum 500Hz sample rate for accel");
/* set the driver to poll at 500Hz */
if (OK != ioctl(fd, SENSORIOCSPOLLRATE, 50/*0*/))
if (OK != ioctl(fd, SENSORIOCSPOLLRATE, 500))
warn("WARNING: failed to set 500Hz poll rate for accel");
warnx("using system accel");
@ -474,7 +474,7 @@ Sensors::gyro_init()
warn("WARNING: failed to set minimum 500Hz sample rate for gyro");
/* set the driver to poll at 500Hz */
if (OK != ioctl(fd, SENSORIOCSPOLLRATE, 50/*0*/))
if (OK != ioctl(fd, SENSORIOCSPOLLRATE, 500))
warn("WARNING: failed to set 500Hz poll rate for gyro");
warnx("using system gyro");