From 3c3ce36753ad396cba304f0eb0e05108ffa514ee Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 2 May 2022 06:30:06 -0400 Subject: [PATCH] helping build --- unit_tests/tests/actuators/test_etb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unit_tests/tests/actuators/test_etb.cpp b/unit_tests/tests/actuators/test_etb.cpp index 9a3c2a8447..a7e4fd2645 100644 --- a/unit_tests/tests/actuators/test_etb.cpp +++ b/unit_tests/tests/actuators/test_etb.cpp @@ -695,8 +695,8 @@ TEST(etb, openLoopThrottle) { etb.init(ETB_Throttle1, nullptr, nullptr, nullptr, true); // Map [0, 100] -> [-50, 50] - setLinearCurve(engineConfiguration->etbBiasBins, 0, 100); - setLinearCurve(engineConfiguration->etbBiasValues, -50, 50); + setLinearCurve(config->etbBiasBins, 0, 100); + setLinearCurve(config->etbBiasValues, -50, 50); EXPECT_NEAR(-50, etb.getOpenLoop(0).value_or(-1), EPS4D); EXPECT_NEAR(-25, etb.getOpenLoop(25).value_or(-1), EPS4D); @@ -717,8 +717,8 @@ TEST(etb, openLoopNonThrottle) { etb.init(ETB_Wastegate, nullptr, nullptr, nullptr, false); // Map [0, 100] -> [-50, 50] - setLinearCurve(engineConfiguration->etbBiasBins, 0, 100); - setLinearCurve(engineConfiguration->etbBiasValues, -50, 50); + setLinearCurve(config->etbBiasBins, 0, 100); + setLinearCurve(config->etbBiasValues, -50, 50); // Should all return 0, as non-throttles don't use open loop table EXPECT_EQ(0, etb.getOpenLoop(0).value_or(-1));