Heli tests now OK
This commit is contained in:
@@ -930,12 +930,17 @@ TEST(Mixer, SlowOnMultiply)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(HELI) && defined(PCBTARANIS)
|
#if defined(HELI) && defined(VIRTUALINPUTS)
|
||||||
TEST(Heli, BasicTest)
|
TEST(Heli, BasicTest)
|
||||||
{
|
{
|
||||||
MODEL_RESET();
|
MODEL_RESET();
|
||||||
applyDefaultTemplate();
|
applyDefaultTemplate();
|
||||||
g_model.swashR.collectiveSource = MIXSRC_Thr;
|
g_model.swashR.collectiveSource = MIXSRC_Thr;
|
||||||
|
g_model.swashR.elevatorSource = MIXSRC_Ele;
|
||||||
|
g_model.swashR.aileronSource = MIXSRC_Ail;
|
||||||
|
g_model.swashR.collectiveWeight = 100;
|
||||||
|
g_model.swashR.elevatorWeight = 100;
|
||||||
|
g_model.swashR.aileronWeight = 100;
|
||||||
g_model.swashR.type = SWASH_TYPE_120;
|
g_model.swashR.type = SWASH_TYPE_120;
|
||||||
g_model.mixData[0].destCh = 0;
|
g_model.mixData[0].destCh = 0;
|
||||||
g_model.mixData[0].mltpx = MLTPX_ADD;
|
g_model.mixData[0].mltpx = MLTPX_ADD;
|
||||||
@@ -962,6 +967,11 @@ TEST(Heli, Mode2Test)
|
|||||||
g_eeGeneral.templateSetup = 2;
|
g_eeGeneral.templateSetup = 2;
|
||||||
applyDefaultTemplate();
|
applyDefaultTemplate();
|
||||||
g_model.swashR.collectiveSource = MIXSRC_Thr;
|
g_model.swashR.collectiveSource = MIXSRC_Thr;
|
||||||
|
g_model.swashR.elevatorSource = MIXSRC_Ele;
|
||||||
|
g_model.swashR.aileronSource = MIXSRC_Ail;
|
||||||
|
g_model.swashR.collectiveWeight = 100;
|
||||||
|
g_model.swashR.elevatorWeight = 100;
|
||||||
|
g_model.swashR.aileronWeight = 100;
|
||||||
g_model.swashR.type = SWASH_TYPE_120;
|
g_model.swashR.type = SWASH_TYPE_120;
|
||||||
g_model.mixData[0].destCh = 0;
|
g_model.mixData[0].destCh = 0;
|
||||||
g_model.mixData[0].mltpx = MLTPX_ADD;
|
g_model.mixData[0].mltpx = MLTPX_ADD;
|
||||||
|
|||||||
Reference in New Issue
Block a user