diff options
author | px4dev <px4@purgatory.org> | 2012-08-25 18:31:12 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-08-25 18:31:12 -0700 |
commit | 665014a3e05c425461d05cfb546e5de21a45095d (patch) | |
tree | 18e3fdab3dc7182cc408cbf1f746b7d7dd9d7e89 /apps | |
parent | a1b17326a4d9ca86f3c87f0047c48362a2e45fa6 (diff) | |
download | px4-firmware-665014a3e05c425461d05cfb546e5de21a45095d.tar.gz px4-firmware-665014a3e05c425461d05cfb546e5de21a45095d.tar.bz2 px4-firmware-665014a3e05c425461d05cfb546e5de21a45095d.zip |
Run accel/gyro at 500Hz as intended.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sensors/sensors.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/sensors/sensors.cpp b/apps/sensors/sensors.cpp index 8b65708b1..ddd19c673 100644 --- a/apps/sensors/sensors.cpp +++ b/apps/sensors/sensors.cpp @@ -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"); |