AP_Baro: ask for maximum poll rate for PX4

This commit is contained in:
Andrew Tridgell 2013-01-21 08:21:31 +11:00
parent dde713aaa5
commit 6a5421a361

View File

@ -27,7 +27,7 @@ bool AP_Baro_PX4::init(void)
}
/* set the driver to poll at 150Hz */
ioctl(_baro_fd, SENSORIOCSPOLLRATE, 150);
ioctl(_baro_fd, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_MAX);
// average over up to 10 samples
ioctl(_baro_fd, SENSORIOCSQUEUEDEPTH, 10);