mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
RC tests: Add new test file
This file is using a PX4IO-bound receiver on a DX9
This commit is contained in:
parent
8d6239f11f
commit
9409122638
@ -33,6 +33,7 @@ private:
|
|||||||
bool dsmTest(const char *filepath, unsigned expected_chancount, unsigned expected_dropcount, unsigned chan0);
|
bool dsmTest(const char *filepath, unsigned expected_chancount, unsigned expected_dropcount, unsigned chan0);
|
||||||
bool dsmTest10Ch();
|
bool dsmTest10Ch();
|
||||||
bool dsmTest16Ch();
|
bool dsmTest16Ch();
|
||||||
|
bool dsmTest22msDSMX16Ch();
|
||||||
bool sbus2Test();
|
bool sbus2Test();
|
||||||
bool st24Test();
|
bool st24Test();
|
||||||
bool sumdTest();
|
bool sumdTest();
|
||||||
@ -43,6 +44,7 @@ bool RCTest::run_tests()
|
|||||||
ut_run_test(crsfTest);
|
ut_run_test(crsfTest);
|
||||||
ut_run_test(dsmTest10Ch);
|
ut_run_test(dsmTest10Ch);
|
||||||
ut_run_test(dsmTest16Ch);
|
ut_run_test(dsmTest16Ch);
|
||||||
|
ut_run_test(dsmTest22msDSMX16Ch);
|
||||||
ut_run_test(sbus2Test);
|
ut_run_test(sbus2Test);
|
||||||
ut_run_test(st24Test);
|
ut_run_test(st24Test);
|
||||||
ut_run_test(sumdTest);
|
ut_run_test(sumdTest);
|
||||||
@ -146,6 +148,11 @@ bool RCTest::dsmTest16Ch()
|
|||||||
return dsmTest(TEST_DATA_PATH "dsm_x_dx9_data.txt", 16, 3, 1500);
|
return dsmTest(TEST_DATA_PATH "dsm_x_dx9_data.txt", 16, 3, 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool RCTest::dsmTest22msDSMX16Ch()
|
||||||
|
{
|
||||||
|
return dsmTest(TEST_DATA_PATH "dsm_x_dx9_px4_binding_data.txt", 16, 6, 1499);
|
||||||
|
}
|
||||||
|
|
||||||
bool RCTest::dsmTest(const char *filepath, unsigned expected_chancount, unsigned expected_dropcount, unsigned chan0)
|
bool RCTest::dsmTest(const char *filepath, unsigned expected_chancount, unsigned expected_dropcount, unsigned chan0)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|||||||
7281
test_data/dsm_x_dx9_px4_binding_data.txt
Normal file
7281
test_data/dsm_x_dx9_px4_binding_data.txt
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user