Browse Source

SITL: support a count of baros

mission-4.1.18
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
e01ea2f5f9
  1. 2
      libraries/SITL/SITL.cpp
  2. 1
      libraries/SITL/SITL.h

2
libraries/SITL/SITL.cpp

@ -166,8 +166,10 @@ const AP_Param::GroupInfo SITL::var_info2[] = { @@ -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
};

1
libraries/SITL/SITL.h

@ -176,6 +176,7 @@ public: @@ -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 {

Loading…
Cancel
Save