Skip to content
Snippets Groups Projects
Commit 20a59b88 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Fix mixer testing setup

parent 74db7bdf
No related branches found
No related tags found
No related merge requests found
Multirotor mixer for TEST
===========================
This file defines a single mixer for a quadrotor with a wide configuration. All controls are mixed 100%.
R: 4w 10000 10000 10000 0
Gimbal / payload mixer for last four channels
-----------------------------------------------------
M: 1
O: 10000 10000 0 -10000 10000
S: 0 4 10000 10000 0 -10000 10000
M: 1
O: 10000 10000 0 -10000 10000
S: 0 5 10000 10000 0 -10000 10000
M: 1
O: 10000 10000 0 -10000 10000
S: 0 6 10000 10000 0 -10000 10000
M: 1
O: 10000 10000 0 -10000 10000
S: 0 7 10000 10000 0 -10000 10000
......@@ -402,7 +402,7 @@ int test_mixer(int argc, char *argv[])
filename = argv[2];
} else {
filename = "/etc/mixers/quad_w.main.mix";
filename = "/etc/mixers/quad_test.mix";
}
load_mixer_file(filename, &buf[0], sizeof(buf));
......@@ -414,8 +414,8 @@ int test_mixer(int argc, char *argv[])
mixer_group.load_from_buf(&buf[0], mc_loaded);
PX4_INFO("complete buffer load: loaded %u mixers", mixer_group.count());
if (mixer_group.count() != 3) {
PX4_ERR("FAIL: Quad W mixer load failed");
if (mixer_group.count() != 5) {
PX4_ERR("FAIL: Quad test mixer load failed");
return 1;
}
......
......@@ -7,6 +7,6 @@
TEST(MixerTest, Mixer)
{
const char *args[] = {"empty", "../ROMFS/px4fmu_common/mixers/IO_pass.mix", "../ROMFS/px4fmu_common/mixers/sk450_deadcat.main.mix"};
const char *args[] = {"empty", "../ROMFS/px4fmu_common/mixers/IO_pass.mix", "../ROMFS/px4fmu_common/mixers/quad_test.mix"};
ASSERT_EQ(test_mixer(3, (char **)args), 0) << "IO_pass.mix failed";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment