mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 02:20:34 +08:00
Improvements to SITL to make paths more flexible. (#5181)
This commit is contained in:
@@ -90,7 +90,7 @@ int test_mixer(int argc, char *argv[])
|
||||
#if !defined(CONFIG_ARCH_BOARD_SITL)
|
||||
const char *filename = "/etc/mixers/IO_pass.mix";
|
||||
#else
|
||||
const char *filename = "../../../../ROMFS/px4fmu_test/mixers/IO_pass.mix";
|
||||
const char *filename = "ROMFS/px4fmu_test/mixers/IO_pass.mix";
|
||||
#endif
|
||||
|
||||
//PX4_INFO("loading: %s", filename);
|
||||
@@ -400,7 +400,7 @@ int test_mixer(int argc, char *argv[])
|
||||
#if !defined(CONFIG_ARCH_BOARD_SITL)
|
||||
filename = "/etc/mixers/quad_test.mix";
|
||||
#else
|
||||
filename = "../../../../ROMFS/px4fmu_test/mixers/quad_test.mix";
|
||||
filename = "ROMFS/px4fmu_test/mixers/quad_test.mix";
|
||||
#endif
|
||||
|
||||
load_mixer_file(filename, &buf[0], sizeof(buf));
|
||||
|
||||
Reference in New Issue
Block a user