AP_Compass_PX4: removed MAGIOCSSAMPLERATE call

This commit is contained in:
Andrew Tridgell 2013-09-09 17:26:14 +10:00
parent d000cd2320
commit 229841052a

View File

@ -48,14 +48,8 @@ bool AP_Compass_PX4::init(void)
return false;
}
/* set the mag internal poll rate to at least 150Hz */
if (0 != ioctl(_mag_fd, MAGIOCSSAMPLERATE, 150)) {
hal.console->printf("Failed to setup compass sample rate\n");
return false;
}
/* set the driver to poll at 150Hz */
if (0 != ioctl(_mag_fd, SENSORIOCSPOLLRATE, 150)) {
/* set the driver to poll at 100Hz */
if (0 != ioctl(_mag_fd, SENSORIOCSPOLLRATE, 100)) {
hal.console->printf("Failed to setup compass poll rate\n");
return false;
}