mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 10:23:35 +08:00
mathlib: get rid of now duplicate sign() function
Instead use the one that was copied to the matrix library in https://github.com/PX4/Matrix/pull/116/
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
|
||||
#include "zero_order_hover_thrust_ekf.hpp"
|
||||
|
||||
using matrix::sign;
|
||||
|
||||
void ZeroOrderHoverThrustEkf::predict(const float dt)
|
||||
{
|
||||
// State is constant
|
||||
@@ -69,7 +71,7 @@ void ZeroOrderHoverThrustEkf::fuseAccZ(const float acc_z, const float thrust, st
|
||||
bumpStateVariance();
|
||||
}
|
||||
|
||||
const float signed_innov_test_ratio = math::sign(innov) * innov_test_ratio;
|
||||
const float signed_innov_test_ratio = sign(innov) * innov_test_ratio;
|
||||
updateLpf(residual, signed_innov_test_ratio);
|
||||
updateMeasurementNoise(residual, H);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user