mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 07:13:34 +08:00
Changed fault tolerances.
This commit is contained in:
@@ -579,7 +579,7 @@ void KalmanNav::correctAtt()
|
|||||||
// fault detection
|
// fault detection
|
||||||
float beta = y.dot(S.inverse() * y);
|
float beta = y.dot(S.inverse() * y);
|
||||||
|
|
||||||
if (beta > 10.0f) {
|
if (beta > 1000.0f) {
|
||||||
printf("fault in attitude: beta = %8.4f\n", (double)beta);
|
printf("fault in attitude: beta = %8.4f\n", (double)beta);
|
||||||
//printf("y:\n"); y.print();
|
//printf("y:\n"); y.print();
|
||||||
}
|
}
|
||||||
@@ -652,7 +652,7 @@ void KalmanNav::correctPos()
|
|||||||
// fault detetcion
|
// fault detetcion
|
||||||
float beta = y.dot(S.inverse() * y);
|
float beta = y.dot(S.inverse() * y);
|
||||||
|
|
||||||
if (beta > 10.0f) {
|
if (beta > 1000.0f) {
|
||||||
printf("fault in gps: beta = %8.4f\n", (double)beta);
|
printf("fault in gps: beta = %8.4f\n", (double)beta);
|
||||||
//printf("y:\n"); y.print();
|
//printf("y:\n"); y.print();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user