forked from Archive/PX4-Autopilot
Run accel/gyro at 500Hz as intended.
This commit is contained in:
parent
a1b17326a4
commit
665014a3e0
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue