mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 07:13:35 +08:00
delete ACCELIOCSELFTEST and GYROIOCSELFTEST
This commit is contained in:
committed by
Lorenz Meier
parent
31c08c7ffb
commit
568a5f1c4c
@@ -816,12 +816,6 @@ BMM150::ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||
case MAGIOCGSAMPLERATE:
|
||||
return 1000000 / _call_interval;
|
||||
|
||||
case MAGIOCSRANGE:
|
||||
return OK;
|
||||
|
||||
case MAGIOCGRANGE:
|
||||
return OK;
|
||||
|
||||
default:
|
||||
/* give it to the superclass */
|
||||
return I2C::ioctl(filp, cmd, arg);
|
||||
|
||||
@@ -688,12 +688,6 @@ IST8310::ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||
/* same as pollrate because device is in single measurement mode*/
|
||||
return 1000000 / TICK2USEC(_measure_ticks);
|
||||
|
||||
case MAGIOCSRANGE:
|
||||
return OK;
|
||||
|
||||
case MAGIOCGRANGE:
|
||||
return 0;
|
||||
|
||||
case MAGIOCEXSTRAP:
|
||||
return set_selftest(arg);
|
||||
|
||||
|
||||
@@ -99,14 +99,6 @@ lis3mdl::init(LIS3MDL_BUS bus_id)
|
||||
PX4_INFO("Poll rate set to max (80hz)");
|
||||
}
|
||||
|
||||
/* Set to 4 Gauss */
|
||||
if (ioctl(fd, MAGIOCSRANGE, 4) != OK) {
|
||||
PX4_WARN("FAILED: MAGIOCSRANGE 4 Gauss");
|
||||
|
||||
} else {
|
||||
PX4_INFO("Set mag range to 4 Gauss");
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user