diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-01 01:48:42 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-01 01:48:42 +0200 |
commit | 4db739b5e19953b5f6c4a16b2ddac8cdc0ae6634 (patch) | |
tree | 812eaf749acb1728a868de6d737d4b0faf22af8b /src/systemcmds | |
parent | 5375bb5b86e266157ceceef08c367da711b8144e (diff) | |
download | px4-firmware-4db739b5e19953b5f6c4a16b2ddac8cdc0ae6634.tar.gz px4-firmware-4db739b5e19953b5f6c4a16b2ddac8cdc0ae6634.tar.bz2 px4-firmware-4db739b5e19953b5f6c4a16b2ddac8cdc0ae6634.zip |
Integration WIP with current NuttX version
Diffstat (limited to 'src/systemcmds')
-rw-r--r-- | src/systemcmds/preflight_check/preflight_check.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/systemcmds/preflight_check/preflight_check.c b/src/systemcmds/preflight_check/preflight_check.c index 4bcce18fb..7752ffe67 100644 --- a/src/systemcmds/preflight_check/preflight_check.c +++ b/src/systemcmds/preflight_check/preflight_check.c @@ -146,6 +146,15 @@ int preflight_check_main(int argc, char *argv[]) bool rc_ok = true; char nbuf[20]; + /* first check channel mappings */ + /* check which map param applies */ + // if (map_by_channel[i] >= MAX_CONTROL_CHANNELS) { + // mavlink_log_critical(mavlink_fd, "ERR: RC_%d_MAP >= # CHANS", i+1); + // /* give system time to flush error message in case there are more */ + // usleep(100000); + // count++; + // } + for (int i = 0; i < 12; i++) { /* should the channel be enabled? */ uint8_t count = 0; @@ -209,8 +218,8 @@ int preflight_check_main(int argc, char *argv[]) count++; } - /* XXX needs inspection of all the _MAP params */ - // if (conf[PX4IO_P_RC_CONFIG_ASSIGNMENT] >= MAX_CONTROL_CHANNELS) { + /* check which map param applies */ + // if (map_by_channel[i] >= MAX_CONTROL_CHANNELS) { // mavlink_log_critical(mavlink_fd, "ERR: RC_%d_MAP >= # CHANS", i+1); // /* give system time to flush error message in case there are more */ // usleep(100000); |