Fix Gtest (fullfilling my debt !)
This commit is contained in:
@@ -75,13 +75,6 @@ TEST_F(TrimsTest, throttleTrim)
|
||||
setTrimValue(0, THR_STICK, TRIM_MIN);
|
||||
evalMixes(1);
|
||||
EXPECT_EQ(channelOutputs[2], -1024);
|
||||
// checks ELE sticks are not affected by throttleTrim
|
||||
// stick max + trim min
|
||||
anaInValues[ELE_STICK] = +1024;
|
||||
setTrimValue(0, ELE_STICK, TRIM_MIN);
|
||||
evalMixes(1);
|
||||
EXPECT_EQ(channelOutputs[1], 1024-250);
|
||||
|
||||
// now the same tests with extended Trims
|
||||
g_model.extendedTrims = 1;
|
||||
// stick max + trim max
|
||||
@@ -398,6 +391,22 @@ TEST_F(TrimsTest, InstantTrimNegativeCurve)
|
||||
}
|
||||
#endif
|
||||
|
||||
TEST_F(TrimsTest, throttleTrimEle) {
|
||||
SYSTEM_RESET();
|
||||
MODEL_RESET();
|
||||
MIXER_RESET();
|
||||
modelDefault(0);
|
||||
g_eeGeneral.templateSetup = 17;
|
||||
applyDefaultTemplate();
|
||||
g_model.thrTrim = 1;
|
||||
// checks ELE sticks are not affected by throttleTrim
|
||||
// stick max + trim min
|
||||
anaInValues[ELE_STICK] = +1024;
|
||||
setTrimValue(0, ELE_STICK, TRIM_MIN);
|
||||
evalMixes(1);
|
||||
EXPECT_EQ(channelOutputs[2], 1024 - 250);
|
||||
}
|
||||
|
||||
TEST(Curves, LinearIntpol)
|
||||
{
|
||||
SYSTEM_RESET();
|
||||
|
||||
Reference in New Issue
Block a user