mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 15:53:33 +08:00
lpe: remove usage of euler angles from attitude topic
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user