mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 00:03:33 +08:00
delete unused IOCTL ACCELIOCGSAMPLERATE
This commit is contained in:
committed by
Lorenz Meier
parent
f59f0d4b2d
commit
8ad59160c9
@@ -569,9 +569,6 @@ ACCELSIM::devIOCTL(unsigned long cmd, unsigned long arg)
|
||||
// No need to set internal sampling rate for simulator
|
||||
return OK;
|
||||
|
||||
case ACCELIOCGSAMPLERATE:
|
||||
return _accel_samplerate;
|
||||
|
||||
case ACCELIOCSSCALE: {
|
||||
/* copy scale, but only if off by a few percent */
|
||||
struct accel_calibration_s *s = (struct accel_calibration_s *) arg;
|
||||
|
||||
@@ -700,9 +700,6 @@ GYROSIM::devIOCTL(unsigned long cmd, unsigned long arg)
|
||||
return OK;
|
||||
}
|
||||
|
||||
case ACCELIOCGSAMPLERATE:
|
||||
return 1e6 / m_sample_interval_usecs;
|
||||
|
||||
case ACCELIOCSSAMPLERATE:
|
||||
_set_sample_rate(arg);
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user