diff options
author | Andreas Antener <antener_a@gmx.ch> | 2015-04-19 14:52:33 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-21 07:01:58 +0200 |
commit | 9c282cf6d69c60e2e280d1febf21fc96bb6e40cc (patch) | |
tree | 925f67982acd8c2718199f6bdd47868494ea9a6a /src/modules | |
parent | 92bdf74423d6feff3fa9ab3e721320138631a86f (diff) | |
download | px4-firmware-9c282cf6d69c60e2e280d1febf21fc96bb6e40cc.tar.gz px4-firmware-9c282cf6d69c60e2e280d1febf21fc96bb6e40cc.tar.bz2 px4-firmware-9c282cf6d69c60e2e280d1febf21fc96bb6e40cc.zip |
added parameters to specify range and channel, caping result
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/sensors/sensor_params.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/modules/sensors/sensor_params.c b/src/modules/sensors/sensor_params.c index 18e47865b..d6ab637cd 100644 --- a/src/modules/sensors/sensor_params.c +++ b/src/modules/sensors/sensor_params.c @@ -1360,3 +1360,42 @@ PARAM_DEFINE_FLOAT(RC_ACRO_TH, 0.5f); * */ PARAM_DEFINE_FLOAT(RC_OFFB_TH, 0.5f); + +/** + * PWM input channel that provides RSSI. + * + * 0: do not read RSSI from input channel + * 1-18: read RSSI from specified input channel + * + * Specify the range for RSSI input with RC_RSSI_PWM_MIN and RC_RSSI_PWM_MAX parameters. + * + * @min 0 + * @max 18 + * @group Radio Calibration + * + */ +PARAM_DEFINE_INT32(RC_RSSI_PWM_CHAN, 0); + +/** + * Max input value for RSSI reading. + * + * Only used if RC_RSSI_PWM_CHAN > 0 + * + * @min 0 + * @max 2000 + * @group Radio Calibration + * + */ +PARAM_DEFINE_INT32(RC_RSSI_PWM_MAX, 1000); + +/** + * Min input value for RSSI reading. + * + * Only used if RC_RSSI_PWM_CHAN > 0 + * + * @min 0 + * @max 2000 + * @group Radio Calibration + * + */ +PARAM_DEFINE_INT32(RC_RSSI_PWM_MIN, 2000); |