Remove q_valid flag from attitude topic

This commit is contained in:
Lorenz Meier
2016-09-27 17:54:04 +02:00
parent d349bd570f
commit 526fb8f515
11 changed files with 31 additions and 46 deletions
@@ -929,7 +929,7 @@ void BlockLocalPositionEstimator::predict()
// state or covariance
if (!_validXY && !_validZ) { return; }
if (integrate && _sub_att.get().q_valid) {
if (integrate) {
matrix::Quaternion<float> q(&_sub_att.get().q[0]);
_eul = matrix::Euler<float>(q);
_R_att = matrix::Dcm<float>(q);