mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
New Xbee Test Implemented
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1766 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
a07e3aa7fc
commit
3fc86e7048
@ -788,12 +788,13 @@ test_xbee(uint8_t argc, const Menu::arg *argv)
|
||||
print_hit_enter();
|
||||
delay(1000);
|
||||
Serial.printf_P(PSTR("Begin XBee X-CTU Range and RSSI Test:\n"));
|
||||
|
||||
while(1){
|
||||
delay(250);
|
||||
// Timeout set high enough for X-CTU RSSI Calc over XBee @ 115200
|
||||
Serial3.printf_P(PSTR("0123456789:;<=>?@ABCDEFGHIJKLMNO\n"));
|
||||
//Serial.print("X");
|
||||
// Default 32bit data from X-CTU Range Test
|
||||
int incomingByte;
|
||||
if(Serial3.available()>0){
|
||||
incomingByte = Serial3.read();
|
||||
Serial3.print(incomingByte,byte);
|
||||
}
|
||||
if(Serial.available() > 0){
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user