SITL: Add parameter for optical flow sensor noise

This commit is contained in:
Paul Riseborough 2019-02-14 20:23:25 +11:00 committed by Andrew Tridgell
parent a40208ebd4
commit 8ac8c7285b
2 changed files with 5 additions and 0 deletions

View File

@ -152,6 +152,10 @@ const AP_Param::GroupInfo SITL::var_info2[] = {
AP_GROUPINFO("SHOVE_Y", 31, SITL, shove.y, 0),
AP_GROUPINFO("SHOVE_Z", 32, SITL, shove.z, 0),
AP_GROUPINFO("SHOVE_TIME", 33, SITL, shove.t, 0),
// optical flow sensor measurement noise in rad/sec
AP_GROUPINFO("FLOW_RND", 34, SITL, flow_noise, 0.05f),
AP_GROUPEND
};

View File

@ -175,6 +175,7 @@ public:
AP_Float speedup; // simulation speedup
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)
// wind control
enum WindType {