mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 17:18:54 +08:00
attitude_estimator_q: be specific about the error
This commit is contained in:
@@ -391,8 +391,12 @@ void AttitudeEstimatorQ::task_main()
|
||||
_accel.set(_voter_accel.get_best(curr_time, &best_accel));
|
||||
_mag.set(_voter_mag.get_best(curr_time, &best_mag));
|
||||
|
||||
if (_accel.length() < 0.01f || _mag.length() < 0.01f) {
|
||||
warnx("WARNING: degenerate accel / mag!");
|
||||
if (_accel.length() < 0.01f) {
|
||||
warnx("WARNING: degenerate accel!");
|
||||
continue;
|
||||
}
|
||||
if (_mag.length() < 0.01f) {
|
||||
warnx("WARNING: degenerate mag!");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user