diff options
author | Jean Cyr <jcyr@dillobits.com> | 2013-09-12 21:36:20 -0400 |
---|---|---|
committer | Jean Cyr <jcyr@dillobits.com> | 2013-09-12 21:36:20 -0400 |
commit | 41610ff7dd6233853270e921828c815797fd6aeb (patch) | |
tree | 63f179b8f06333152141a935f006d324dd80a27e /src/modules | |
parent | 41982579b3825bf93dad46ec6eed383ce47f04ff (diff) | |
download | px4-firmware-41610ff7dd6233853270e921828c815797fd6aeb.tar.gz px4-firmware-41610ff7dd6233853270e921828c815797fd6aeb.tar.bz2 px4-firmware-41610ff7dd6233853270e921828c815797fd6aeb.zip |
DSM pairing cleanup in px4io.cpp
- Simplify parameter range checking in dsm_bind_ioctl
- Replace DSM magic numbers with symbolic constants
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/sensors/sensor_params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/sensors/sensor_params.c b/src/modules/sensors/sensor_params.c index 992abf2cc..950af2eba 100644 --- a/src/modules/sensors/sensor_params.c +++ b/src/modules/sensors/sensor_params.c @@ -166,7 +166,7 @@ PARAM_DEFINE_FLOAT(RC15_DZ, 0.0f); PARAM_DEFINE_INT32(RC_RL1_DSM_VCC, 0); /* Relay 1 controls DSM VCC */ -PARAM_DEFINE_INT32(RC_DSM_BIND, 0); /* 0 = Idle, 1 = Start DSM2 bind, 2 = Start DSMX bind */ +PARAM_DEFINE_INT32(RC_DSM_BIND, -1); /* -1 = Idle, 0 = Start DSM2 bind, 1 = Start DSMX bind */ #ifdef CONFIG_ARCH_BOARD_PX4FMU_V2 PARAM_DEFINE_FLOAT(BAT_V_SCALING, 0.0082f); |