mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
AP_Baro: ask for maximum poll rate for PX4
This commit is contained in:
parent
dde713aaa5
commit
6a5421a361
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user