mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 22:50:35 +08:00
delete unused IOCTL GYROIOCSSAMPLERATE
This commit is contained in:
committed by
Lorenz Meier
parent
60c14fe8f1
commit
3daf37433e
@@ -178,17 +178,7 @@ do_gyro(int argc, char *argv[])
|
||||
|
||||
int ret;
|
||||
|
||||
if (argc == 3 && !strcmp(argv[0], "sampling")) {
|
||||
|
||||
/* set the gyro internal sampling rate up to at least i Hz */
|
||||
ret = ioctl(fd, GYROIOCSSAMPLERATE, strtoul(argv[2], NULL, 0));
|
||||
|
||||
if (ret) {
|
||||
PX4_ERR("sampling rate could not be set");
|
||||
return 1;
|
||||
}
|
||||
|
||||
} else if (argc == 3 && !strcmp(argv[0], "rate")) {
|
||||
if (argc == 3 && !strcmp(argv[0], "rate")) {
|
||||
|
||||
/* set the driver to poll at i Hz */
|
||||
ret = ioctl(fd, SENSORIOCSPOLLRATE, strtoul(argv[2], NULL, 0));
|
||||
|
||||
Reference in New Issue
Block a user