From 69d3e9be0a13cd124e2548b210c6a001898de7f7 Mon Sep 17 00:00:00 2001 From: 3djc Date: Thu, 12 Jul 2018 07:40:57 +0200 Subject: [PATCH] Add Gtest (fullfilling my debt !) --- radio/src/tests/mixer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radio/src/tests/mixer.cpp b/radio/src/tests/mixer.cpp index 9d3c439e5..be98ee981 100644 --- a/radio/src/tests/mixer.cpp +++ b/radio/src/tests/mixer.cpp @@ -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;