mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 05:10:35 +08:00
ekf2: change delta angle and delta velocity bias states to accel and gyro bias (#21901)
* ekf2-test: remove outdated codegen comparison The definition of states changed so the comparison with the old derivation cannot work anymore. --------- Co-authored-by: bresch <brescianimathieu@gmail.com>
This commit is contained in:
@@ -42,8 +42,6 @@
|
||||
#include <vector>
|
||||
#include <mathlib/mathlib.h>
|
||||
|
||||
#include "EKF/utils.hpp"
|
||||
|
||||
TEST(eclPowfTest, compareToStandardImplementation)
|
||||
{
|
||||
std::vector<int> exponents = {-3, -2, -1, -0, 0, 1, 2, 3};
|
||||
@@ -51,7 +49,7 @@ TEST(eclPowfTest, compareToStandardImplementation)
|
||||
|
||||
for (auto const exponent : exponents) {
|
||||
for (auto const basis : bases) {
|
||||
EXPECT_EQ(ecl::powf(basis, exponent),
|
||||
EXPECT_EQ(powf(basis, exponent),
|
||||
std::pow(basis, static_cast<float>(exponent)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user