DSM pairing cleanup in px4io.cpp

- Simplify parameter range checking in dsm_bind_ioctl
- Replace DSM magic numbers with symbolic constants
This commit is contained in:
Jean Cyr
2013-09-12 21:36:20 -04:00
parent 41982579b3
commit 41610ff7dd
3 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -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);