From 98ca6932981eeb8802dcd1dc50ca190ec40db906 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 14 Dec 2017 12:12:10 -0500 Subject: [PATCH] delete unused GYROIOCGLOWPASS --- src/drivers/adis16448/adis16448.cpp | 3 --- src/drivers/bmi055/bmi055_gyro.cpp | 3 --- src/drivers/bmi160/bmi160.cpp | 3 --- src/drivers/drv_gyro.h | 3 --- src/drivers/fxas21002c/fxas21002c.cpp | 3 --- src/drivers/l3gd20/l3gd20.cpp | 3 --- src/drivers/mpu6000/mpu6000.cpp | 3 --- src/drivers/mpu9250/mpu9250.cpp | 3 --- 8 files changed, 24 deletions(-) diff --git a/src/drivers/adis16448/adis16448.cpp b/src/drivers/adis16448/adis16448.cpp index bfa9ac8314..3454d73da3 100644 --- a/src/drivers/adis16448/adis16448.cpp +++ b/src/drivers/adis16448/adis16448.cpp @@ -1197,9 +1197,6 @@ ADIS16448::gyro_ioctl(struct file *filp, int cmd, unsigned long arg) _set_sample_rate(arg); return OK; - case GYROIOCGLOWPASS: - return _gyro_filter_x.get_cutoff_freq(); - case GYROIOCSSCALE: /* copy scale in */ memcpy(&_gyro_scale, (struct gyro_calibration_s *) arg, sizeof(_gyro_scale)); diff --git a/src/drivers/bmi055/bmi055_gyro.cpp b/src/drivers/bmi055/bmi055_gyro.cpp index 6ecd22b7e7..f1da1a8021 100644 --- a/src/drivers/bmi055/bmi055_gyro.cpp +++ b/src/drivers/bmi055/bmi055_gyro.cpp @@ -444,9 +444,6 @@ BMI055_gyro::ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCSSAMPLERATE: return gyro_set_sample_rate(arg); - case GYROIOCGLOWPASS: - return _gyro_filter_x.get_cutoff_freq(); - case GYROIOCSSCALE: /* copy scale in */ memcpy(&_gyro_scale, (struct gyro_calibration_s *) arg, sizeof(_gyro_scale)); diff --git a/src/drivers/bmi160/bmi160.cpp b/src/drivers/bmi160/bmi160.cpp index 120ec250e7..376dd6dda5 100644 --- a/src/drivers/bmi160/bmi160.cpp +++ b/src/drivers/bmi160/bmi160.cpp @@ -795,9 +795,6 @@ BMI160::gyro_ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCSSAMPLERATE: return gyro_set_sample_rate(arg); - case GYROIOCGLOWPASS: - return _gyro_filter_x.get_cutoff_freq(); - case GYROIOCSSCALE: /* copy scale in */ memcpy(&_gyro_scale, (struct gyro_calibration_s *) arg, sizeof(_gyro_scale)); diff --git a/src/drivers/drv_gyro.h b/src/drivers/drv_gyro.h index ad7bd72490..35440e0f67 100644 --- a/src/drivers/drv_gyro.h +++ b/src/drivers/drv_gyro.h @@ -79,9 +79,6 @@ struct gyro_calibration_s { /** return the gyro internal sample rate in Hz */ #define GYROIOCGSAMPLERATE _GYROIOC(1) -/** set the gyro internal lowpass filter to no lower than (arg) Hz */ -#define GYROIOCGLOWPASS _GYROIOC(3) - /** set the gyro scaling constants to (arg) */ #define GYROIOCSSCALE _GYROIOC(4) diff --git a/src/drivers/fxas21002c/fxas21002c.cpp b/src/drivers/fxas21002c/fxas21002c.cpp index a7c79886dc..73cc491c76 100644 --- a/src/drivers/fxas21002c/fxas21002c.cpp +++ b/src/drivers/fxas21002c/fxas21002c.cpp @@ -723,9 +723,6 @@ FXAS21002C::ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCGSAMPLERATE: return _current_rate; - case GYROIOCGLOWPASS: - return static_cast(_gyro_filter_x.get_cutoff_freq()); - case GYROIOCSSCALE: /* copy scale in */ memcpy(&_gyro_scale, (struct gyro_calibration_s *) arg, sizeof(_gyro_scale)); diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index 0e30c9f22d..22171c8be6 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -670,9 +670,6 @@ L3GD20::ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCGSAMPLERATE: return _current_rate; - case GYROIOCGLOWPASS: - return static_cast(_gyro_filter_x.get_cutoff_freq()); - case GYROIOCSSCALE: /* copy scale in */ memcpy(&_gyro_scale, (struct gyro_calibration_s *) arg, sizeof(_gyro_scale)); diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index 9c08b1ff1f..0307b53e6c 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -1560,9 +1560,6 @@ MPU6000::gyro_ioctl(struct file *filp, int cmd, unsigned long arg) _set_sample_rate(arg); return OK; - case GYROIOCGLOWPASS: - return _gyro_filter_x.get_cutoff_freq(); - case GYROIOCSSCALE: /* copy scale in */ memcpy(&_gyro_scale, (struct gyro_calibration_s *) arg, sizeof(_gyro_scale)); diff --git a/src/drivers/mpu9250/mpu9250.cpp b/src/drivers/mpu9250/mpu9250.cpp index 770d05d345..004de1f43b 100644 --- a/src/drivers/mpu9250/mpu9250.cpp +++ b/src/drivers/mpu9250/mpu9250.cpp @@ -971,9 +971,6 @@ MPU9250::gyro_ioctl(struct file *filp, int cmd, unsigned long arg) _set_sample_rate(arg); return OK; - case GYROIOCGLOWPASS: - return _gyro_filter_x.get_cutoff_freq(); - case GYROIOCSSCALE: /* copy scale in */ memcpy(&_gyro_scale, (struct gyro_calibration_s *) arg, sizeof(_gyro_scale));