diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-01-07 17:39:18 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-01-07 17:39:18 +0100 |
commit | 451b38b39f776d14b81964c34cbc00592d45dd63 (patch) | |
tree | e41b9fa3a73291b0840dd0d848e8ffc2744cce94 /apps/sensors/sensors.cpp | |
parent | f55beb679c5c3ab57fb846c8adae6e348d947f17 (diff) | |
download | px4-firmware-451b38b39f776d14b81964c34cbc00592d45dd63.tar.gz px4-firmware-451b38b39f776d14b81964c34cbc00592d45dd63.tar.bz2 px4-firmware-451b38b39f776d14b81964c34cbc00592d45dd63.zip |
Removed commented-out lines (EXP support)
Diffstat (limited to 'apps/sensors/sensors.cpp')
-rw-r--r-- | apps/sensors/sensors.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/sensors/sensors.cpp b/apps/sensors/sensors.cpp index 9e29a61af..d00340173 100644 --- a/apps/sensors/sensors.cpp +++ b/apps/sensors/sensors.cpp @@ -417,15 +417,10 @@ Sensors::Sensors() : sprintf(nbuf, "RC%d_DZ", i + 1); _parameter_handles.dz[i] = param_find(nbuf); - // /* channel exponential gain */ - // sprintf(nbuf, "RC%d_EXP", i + 1); - // _parameter_handles.ex[i] = param_find(nbuf); } _parameter_handles.rc_type = param_find("RC_TYPE"); - // _parameter_handles.rc_demix = param_find("RC_DEMIX"); - /* mandatory input switched, mapped to channels 1-4 per default */ _parameter_handles.rc_map_roll = param_find("RC_MAP_ROLL"); _parameter_handles.rc_map_pitch = param_find("RC_MAP_PITCH"); @@ -530,9 +525,6 @@ Sensors::parameters_update() if (param_get(_parameter_handles.dz[i], &(_parameters.dz[i])) != OK) { warnx("Failed getting dead zone for chan %d", i); } - // if (param_get(_parameter_handles.ex[i], &(_parameters.ex[i])) != OK) { - // warnx("Failed getting exponential gain for chan %d", i); - // } _parameters.scaling_factor[i] = (1.0f / ((_parameters.max[i] - _parameters.min[i]) / 2.0f) * _parameters.rev[i]); |