From 85c2b6307c49571e2d37d669382ae55881c3a30a Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 3 Nov 2018 15:22:40 -0400 Subject: [PATCH] delete unused IOCTL AIRSPEEDIOCGSCALE --- src/drivers/drv_airspeed.h | 2 -- src/lib/drivers/airspeed/airspeed.cpp | 7 ------- src/modules/simulator/airspeedsim/airspeedsim.cpp | 7 ------- 3 files changed, 16 deletions(-) diff --git a/src/drivers/drv_airspeed.h b/src/drivers/drv_airspeed.h index ff49a60664..763cab3524 100644 --- a/src/drivers/drv_airspeed.h +++ b/src/drivers/drv_airspeed.h @@ -62,8 +62,6 @@ #define __AIRSPEEDIOC(_n) (_PX4_IOC(_AIRSPEEDIOCBASE, _n)) #define AIRSPEEDIOCSSCALE __AIRSPEEDIOC(0) -#define AIRSPEEDIOCGSCALE __AIRSPEEDIOC(1) - /** airspeed scaling factors; out = (in * Vscale) + offset */ struct airspeed_scale { diff --git a/src/lib/drivers/airspeed/airspeed.cpp b/src/lib/drivers/airspeed/airspeed.cpp index e493b25126..bb606eddd8 100644 --- a/src/lib/drivers/airspeed/airspeed.cpp +++ b/src/lib/drivers/airspeed/airspeed.cpp @@ -212,13 +212,6 @@ Airspeed::ioctl(device::file_t *filp, int cmd, unsigned long arg) return OK; } - case AIRSPEEDIOCGSCALE: { - struct airspeed_scale *s = (struct airspeed_scale *)arg; - s->offset_pa = _diff_pres_offset; - s->scale = 1.0f; - return OK; - } - default: /* give it to the superclass */ return I2C::ioctl(filp, cmd, arg); diff --git a/src/modules/simulator/airspeedsim/airspeedsim.cpp b/src/modules/simulator/airspeedsim/airspeedsim.cpp index e4ee856d00..191a882809 100644 --- a/src/modules/simulator/airspeedsim/airspeedsim.cpp +++ b/src/modules/simulator/airspeedsim/airspeedsim.cpp @@ -257,13 +257,6 @@ AirspeedSim::ioctl(cdev::file_t *filp, int cmd, unsigned long arg) return OK; } - case AIRSPEEDIOCGSCALE: { - struct airspeed_scale *s = (struct airspeed_scale *)arg; - s->offset_pa = _diff_pres_offset; - s->scale = 1.0f; - return OK; - } - default: /* give it to the superclass */ //return I2C::ioctl(filp, cmd, arg); XXX SIM should be super class