LPE fault relaxation and sitl fix (#6146)

* Set LPE FUSE for standard iris sitl config.

* Relax fault detection handling.

* Always correct lidar.
This commit is contained in:
James Goppert
2016-12-23 15:08:37 -05:00
committed by GitHub
parent 661fda2b2a
commit c28cd76e5f
9 changed files with 37 additions and 40 deletions
@@ -85,13 +85,11 @@ void BlockLocalPositionEstimator::baroCorrect()
mavlink_and_console_log_info(&mavlink_log_pub, "[lpe] baro OK");
}
// kalman filter correction if no fault
if (!(_sensorFault & SENSOR_BARO)) {
Matrix<float, n_x, n_y_baro> K = _P * C.transpose() * S_I;
Vector<float, n_x> dx = K * r;
_x += dx;
_P -= K * C * _P;
}
// kalman filter correction always
Matrix<float, n_x, n_y_baro> K = _P * C.transpose() * S_I;
Vector<float, n_x> dx = K * r;
_x += dx;
_P -= K * C * _P;
}
void BlockLocalPositionEstimator::baroCheckTimeout()