delete unused IOCTL AIRSPEEDIOCGSCALE

This commit is contained in:
Daniel Agar
2018-11-03 15:22:40 -04:00
committed by Lorenz Meier
parent acc24da0c2
commit 85c2b6307c
3 changed files with 0 additions and 16 deletions

View File

@@ -62,8 +62,6 @@
#define __AIRSPEEDIOC(_n) (_PX4_IOC(_AIRSPEEDIOCBASE, _n)) #define __AIRSPEEDIOC(_n) (_PX4_IOC(_AIRSPEEDIOCBASE, _n))
#define AIRSPEEDIOCSSCALE __AIRSPEEDIOC(0) #define AIRSPEEDIOCSSCALE __AIRSPEEDIOC(0)
#define AIRSPEEDIOCGSCALE __AIRSPEEDIOC(1)
/** airspeed scaling factors; out = (in * Vscale) + offset */ /** airspeed scaling factors; out = (in * Vscale) + offset */
struct airspeed_scale { struct airspeed_scale {

View File

@@ -212,13 +212,6 @@ Airspeed::ioctl(device::file_t *filp, int cmd, unsigned long arg)
return OK; 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: default:
/* give it to the superclass */ /* give it to the superclass */
return I2C::ioctl(filp, cmd, arg); return I2C::ioctl(filp, cmd, arg);

View File

@@ -257,13 +257,6 @@ AirspeedSim::ioctl(cdev::file_t *filp, int cmd, unsigned long arg)
return OK; 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: default:
/* give it to the superclass */ /* give it to the superclass */
//return I2C::ioctl(filp, cmd, arg); XXX SIM should be super class //return I2C::ioctl(filp, cmd, arg); XXX SIM should be super class