Add Gtest (fullfilling my debt !)

This commit is contained in:
3djc
2018-07-12 07:40:57 +02:00
parent 94bd8a237d
commit 69d3e9be0a
+6
View File
@@ -75,6 +75,12 @@ 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;