[Taranis] A lot of new features, >100 hours work in one commit...

This commit is contained in:
bsongis
2013-11-30 11:11:14 +01:00
committed by Andre Bernet
parent 89c6bb2513
commit 4b9270182e
66 changed files with 3611 additions and 1295 deletions
+4 -4
View File
@@ -763,10 +763,10 @@ TEST(Curves, LinearIntpol)
for (int8_t i=-2; i<=2; i++) {
g_model.points[2+i] = 50*i;
}
EXPECT_EQ(intpol(-1024, 0), -1024);
EXPECT_EQ(intpol(0, 0), 0);
EXPECT_EQ(intpol(1024, 0), 1024);
EXPECT_EQ(intpol(-192, 0), -192);
EXPECT_EQ(applyCustomCurve(-1024, 0), -1024);
EXPECT_EQ(applyCustomCurve(0, 0), 0);
EXPECT_EQ(applyCustomCurve(1024, 0), 1024);
EXPECT_EQ(applyCustomCurve(-192, 0), -192);
}
int main(int argc, char **argv) {