mirror of https://github.com/FOME-Tech/fome-fw.git
helping build
This commit is contained in:
parent
97a8fee3c9
commit
7bd22b589d
|
@ -695,8 +695,8 @@ TEST(etb, openLoopThrottle) {
|
||||||
etb.init(ETB_Throttle1, nullptr, nullptr, nullptr, true);
|
etb.init(ETB_Throttle1, nullptr, nullptr, nullptr, true);
|
||||||
|
|
||||||
// Map [0, 100] -> [-50, 50]
|
// Map [0, 100] -> [-50, 50]
|
||||||
setLinearCurve(engineConfiguration->etbBiasBins, 0, 100);
|
setLinearCurve(config->etbBiasBins, 0, 100);
|
||||||
setLinearCurve(engineConfiguration->etbBiasValues, -50, 50);
|
setLinearCurve(config->etbBiasValues, -50, 50);
|
||||||
|
|
||||||
EXPECT_NEAR(-50, etb.getOpenLoop(0).value_or(-1), EPS4D);
|
EXPECT_NEAR(-50, etb.getOpenLoop(0).value_or(-1), EPS4D);
|
||||||
EXPECT_NEAR(-25, etb.getOpenLoop(25).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);
|
etb.init(ETB_Wastegate, nullptr, nullptr, nullptr, false);
|
||||||
|
|
||||||
// Map [0, 100] -> [-50, 50]
|
// Map [0, 100] -> [-50, 50]
|
||||||
setLinearCurve(engineConfiguration->etbBiasBins, 0, 100);
|
setLinearCurve(config->etbBiasBins, 0, 100);
|
||||||
setLinearCurve(engineConfiguration->etbBiasValues, -50, 50);
|
setLinearCurve(config->etbBiasValues, -50, 50);
|
||||||
|
|
||||||
// Should all return 0, as non-throttles don't use open loop table
|
// Should all return 0, as non-throttles don't use open loop table
|
||||||
EXPECT_EQ(0, etb.getOpenLoop(0).value_or(-1));
|
EXPECT_EQ(0, etb.getOpenLoop(0).value_or(-1));
|
||||||
|
|
Loading…
Reference in New Issue