Browse Source

SITL: add GPS2_GLITCH parameter

mission-4.1.18
Randy Mackay 8 years ago
parent
commit
07ce7b8bd6
  1. 1
      libraries/SITL/SITL.cpp
  2. 3
      libraries/SITL/SITL.h

1
libraries/SITL/SITL.cpp

@ -89,6 +89,7 @@ const AP_Param::GroupInfo SITL::var_info[] = { @@ -89,6 +89,7 @@ const AP_Param::GroupInfo SITL::var_info[] = {
AP_GROUPINFO("FLOW_POS", 56, SITL, optflow_pos_offset, 0),
AP_GROUPINFO("ACC2_BIAS", 57, SITL, accel2_bias, 0),
AP_GROUPINFO("GPS_NOISE", 58, SITL, gps_noise, 0),
AP_GROUPINFO("GP2_GLITCH", 59, SITL, gps2_glitch, 0),
AP_GROUPEND
};

3
libraries/SITL/SITL.h

@ -97,7 +97,8 @@ public: @@ -97,7 +97,8 @@ public:
AP_Int8 gps_type; // see enum GPSType
AP_Float gps_byteloss;// byte loss as a percent
AP_Int8 gps_numsats; // number of visible satellites
AP_Vector3f gps_glitch; // glitch offsets in lat, lon and altitude
AP_Vector3f gps_glitch; // glitch offsets in lat, lon and altitude
AP_Vector3f gps2_glitch; // glitch offsets in lat, lon and altitude for 2nd GPS
AP_Int8 gps_hertz; // GPS update rate in Hz
AP_Float batt_voltage; // battery voltage base
AP_Float accel_fail; // accelerometer failure value

Loading…
Cancel
Save