Support 18 channels correctly on FMU

This commit is contained in:
Lorenz Meier
2013-12-22 21:09:47 +01:00
parent 6c990d0a6e
commit 9abf31c2ba
5 changed files with 27 additions and 12 deletions
+2 -2
View File
@@ -45,7 +45,7 @@
#include <systemlib/rc_check.h>
#include <systemlib/param/param.h>
#include <mavlink/mavlink_log.h>
#include <uORB/topics/rc_channels.h>
#include <drivers/drv_rc_input.h>
int rc_calibration_check(int mavlink_fd) {
@@ -66,7 +66,7 @@ int rc_calibration_check(int mavlink_fd) {
int channel_fail_count = 0;
for (int i = 0; i < RC_CHANNELS_MAX; i++) {
for (int i = 0; i < RC_INPUT_MAX_CHANNELS; i++) {
/* should the channel be enabled? */
uint8_t count = 0;