attitude_estimator_q: don't spam console

We should not spam the console just because the input data is
degenerate, it would only make things worse because everything would
slow down due to the printfs.
This commit is contained in:
Julian Oes 2016-08-03 17:24:10 +02:00 committed by Lorenz Meier
parent d748f6ca71
commit ea9c8b968a
1 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ void AttitudeEstimatorQ::task_main()
_accel(2) = _lp_accel_z.apply(sensors.accelerometer_m_s2[2]);
if (_accel.length() < 0.01f) {
warnx("WARNING: degenerate accel!");
PX4_DEBUG("WARNING: degenerate accel!");
continue;
}
}
@ -366,7 +366,7 @@ void AttitudeEstimatorQ::task_main()
_mag(2) = sensors.magnetometer_ga[2];
if (_mag.length() < 0.01f) {
warnx("WARNING: degenerate mag!");
PX4_DEBUG("WARNING: degenerate mag!");
continue;
}
}