mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 11:13:34 +08:00
Improvements to SITL to make paths more flexible. (#5181)
This commit is contained in:
@@ -40,4 +40,5 @@ px4_add_module(
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#if !defined(CONFIG_ARCH_BOARD_SITL)
|
||||
#define TEST_DATA_PATH "/fs/microsd"
|
||||
#else
|
||||
#define TEST_DATA_PATH "../../../../src/lib/rc/rc_tests/test_data/"
|
||||
#define TEST_DATA_PATH "./src/lib/rc/rc_tests/test_data/"
|
||||
#endif
|
||||
|
||||
extern "C" __EXPORT int rc_tests_main(int argc, char *argv[]);
|
||||
@@ -51,8 +51,8 @@ bool RCTest::dsmTest(void)
|
||||
FILE *fp;
|
||||
fp = fopen(filepath, "rt");
|
||||
|
||||
warnx("loading data from: %s", filepath);
|
||||
ut_test(fp != nullptr);
|
||||
//warnx("loading data from: %s", filepath);
|
||||
|
||||
float f;
|
||||
unsigned x;
|
||||
|
||||
Reference in New Issue
Block a user