floatrange_noise;// observation noise for range finder measurements (m)
floatrange_noise;// observation noise for range finder measurements (m)
floatrange_innov_gate;// range finder fusion innovation consistency gate size (STD)
floatrange_innov_gate;// range finder fusion innovation consistency gate size (STD)
floatrng_gnd_clearance;// minimum valid value for range when on ground (m)
floatrng_gnd_clearance;// minimum valid value for range when on ground (m)
floatrng_sens_pitch;// Pitch offset of the range sensor (rad). Sensor points out along Z axis when offset is zero. Positive rotation is RH about Y axis.
// predict the hagl from the vehicle position and terrain height
// predict the hagl from the vehicle position and terrain height
floatpred_hagl=_terrain_vpos-_state.pos(2);
floatpred_hagl=_terrain_vpos-_state.pos(2);
@ -99,7 +99,7 @@ void Ekf::fuseHagl()
_hagl_innov=pred_hagl-meas_hagl;
_hagl_innov=pred_hagl-meas_hagl;
// calculate the observation variance adding the variance of the vehicles own height uncertainty and factoring in the effect of tilt on measurement error
// calculate the observation variance adding the variance of the vehicles own height uncertainty and factoring in the effect of tilt on measurement error