lpe: remove usage of euler angles from attitude topic

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2016-10-18 20:46:08 +02:00
committed by Lorenz Meier
parent 06931e12cf
commit 7c2ebd96a0
2 changed files with 5 additions and 5 deletions
@@ -43,7 +43,7 @@ void BlockLocalPositionEstimator::flowDeinit()
int BlockLocalPositionEstimator::flowMeasure(Vector<float, n_y_flow> &y)
{
// check for sane pitch/roll
if (_sub_att.get().roll > 0.5f || _sub_att.get().pitch > 0.5f) {
if (_eul(0) > 0.5f || _eul(1) > 0.5f) {
return -1;
}