From e01ea2f5f9d40abd2acb73b69dff2c1077b6d7a2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 5 Jan 2019 21:45:02 +1100 Subject: [PATCH] SITL: support a count of baros --- libraries/SITL/SITL.cpp | 2 ++ libraries/SITL/SITL.h | 1 + 2 files changed, 3 insertions(+) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index 0da3770548..61013453c6 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -166,8 +166,10 @@ const AP_Param::GroupInfo SITL::var_info2[] = { AP_GROUPINFO("TWIST_TIME", 40, SITL, twist.t, 0), AP_GROUPINFO("GND_BEHAV", 41, SITL, gnd_behav, -1), + AP_GROUPINFO("BARO_COUNT", 42, SITL, baro_count, 1), AP_GROUPEND + }; diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index da914abf1a..eb233940da 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -176,6 +176,7 @@ public: AP_Int8 odom_enable; // enable visual odomotry data AP_Int8 telem_baudlimit_enable; // enable baudrate limiting on links AP_Float flow_noise; // optical flow measurement noise (rad/sec) + AP_Int8 baro_count; // number of simulated baros to create // wind control enum WindType {