SITL: support a count of baros

This commit is contained in:
Peter Barker 2019-01-05 21:45:02 +11:00 committed by Andrew Tridgell
parent c283bb968b
commit e01ea2f5f9
2 changed files with 3 additions and 0 deletions

View File

@ -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
};

View File

@ -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 {