From 128ea42286037a25d2c4d2846e804d14789a7a21 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 24 Jul 2018 12:46:11 +1000 Subject: [PATCH] SITL: added SIM_RC_CHANCOUNT parameter --- libraries/SITL/SITL.cpp | 1 + libraries/SITL/SITL.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index 2f2c367e66..9db401082f 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -121,6 +121,7 @@ const AP_Param::GroupInfo SITL::var_info2[] = { AP_GROUPINFO("MAG_DIA", 18, SITL, mag_diag, 0), AP_GROUPINFO("MAG_ODI", 19, SITL, mag_offdiag, 0), AP_GROUPINFO("MAG_ORIENT", 20, SITL, mag_orient, 0), + AP_GROUPINFO("RC_CHANCOUNT",21, SITL, rc_chancount, 16), AP_GROUPEND }; diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index b92a5340fb..97c11888d7 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -134,6 +134,7 @@ public: AP_Float batt_voltage; // battery voltage base AP_Float accel_fail; // accelerometer failure value AP_Int8 rc_fail; // fail RC input + AP_Int8 rc_chancount; // channel count AP_Int8 baro_disable; // disable simulated barometer AP_Int8 float_exception; // enable floating point exception checks AP_Int8 flow_enable; // enable simulated optflow