-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Evangelista
committed
Nov 14, 2018
1 parent
9d95d88
commit 5a7468d
Showing
6 changed files
with
123 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2018-Sep-15 -- ES495 revision Original |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
TESTS/binding/ext_dsmx_11ms/main.cpp | ||
Spektrum binding test, external DSMX 11ms | ||
D Evangelista, 2018 | ||
Expected failure when using the satellite receiver as only receiver | ||
*/ | ||
|
||
#include "mbed.h" | ||
#include "rtos.h" | ||
#include "spektrum.h" | ||
#include "unity.h" | ||
|
||
Serial pc(USBTX, USBRX); | ||
BindPlug bind_Plug(p13, p14, SPEKTRUM_EXT_DSMX_11MS); | ||
char c; | ||
|
||
|
||
|
||
int main(){ | ||
|
||
pc.printf("Spektrum binding test, internal DSMX 11ms\r\n"); | ||
pc.printf("Be sure to connect orange to p13, gray to p14, blk to gnd\r\n"); | ||
pc.printf("Should see blinking light, transmitter should attempt bind\r\n"); | ||
pc.printf("Was binding successful (y/n)? "); | ||
pc.scanf(" %c",&c); | ||
|
||
TEST_ASSERT_EQUAL_MESSAGE('y',c,"Binding test failed.\r\n"); | ||
|
||
} // main() for TESTS/binding/ext_dsmx_11ms | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
TESTS/binding/ext_dsmx_22ms/main.cpp | ||
Spektrum binding test, external DSMX 22ms | ||
D Evangelista, 2018 | ||
Expected failure when using satellite receiver as the only receiver | ||
*/ | ||
|
||
#include "mbed.h" | ||
#include "rtos.h" | ||
#include "spektrum.h" | ||
#include "unity.h" | ||
|
||
Serial pc(USBTX, USBRX); | ||
BindPlug bind_Plug(p13, p14, SPEKTRUM_EXT_DSMX_22MS); | ||
char c; | ||
|
||
|
||
|
||
int main(){ | ||
|
||
pc.printf("Spektrum binding test, external DSMX 22ms\r\n"); | ||
pc.printf("Be sure to connect orange to p13, gray to p14, blk to gnd\r\n"); | ||
pc.printf("Should see blinking light, transmitter should attempt bind\r\n"); | ||
pc.printf("Was binding successful (y/n)? "); | ||
pc.scanf(" %c",&c); | ||
|
||
TEST_ASSERT_EQUAL_MESSAGE('y',c,"Binding test failed.\r\n"); | ||
|
||
} // main() for TESTS/binding/ext_dsmx_22ms | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
TESTS/binding/int_dsmx_22ms/main.cpp | ||
Spektrum binding test, internal DSMX 22ms | ||
D Evangelista, 2018 | ||
Test passed on 13 Nov 2018 | ||
*/ | ||
|
||
#include "mbed.h" | ||
#include "rtos.h" | ||
#include "spektrum.h" | ||
#include "unity.h" | ||
|
||
Serial pc(USBTX, USBRX); | ||
BindPlug bind_Plug(p13, p14, SPEKTRUM_INT_DSMX_22MS); | ||
char c; | ||
|
||
|
||
|
||
int main(){ | ||
|
||
pc.printf("Spektrum binding test, internal DSMX 22ms\r\n"); | ||
pc.printf("Be sure to connect orange to p13, gray to p14, blk to gnd\r\n"); | ||
pc.printf("Should see blinking light, transmitter should attempt bind\r\n"); | ||
pc.printf("Was binding successful (y/n)? "); | ||
pc.scanf(" %c",&c); | ||
|
||
TEST_ASSERT_EQUAL_MESSAGE('y',c,"Binding test failed.\r\n"); | ||
|
||
} // main() for TESTS/binding/int_dsmx_22ms | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters