mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:33:35 +08:00
Fix mixer testing setup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user