re-sync rawgps cli test with APM2 (r2501)

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2601 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
dhcorley@msn.com 2011-06-20 17:11:54 +00:00
parent d090f92b66
commit d3d68ea4c7

View File

@ -799,23 +799,25 @@ test_wp(uint8_t argc, const Menu::arg *argv)
return (0); return (0);
} }
static int8_t static int8_t test_rawgps(uint8_t argc, const Menu::arg *argv) {
test_rawgps(uint8_t argc, const Menu::arg *argv)
{
print_hit_enter(); print_hit_enter();
delay(1000); delay(1000);
while(1){ while(1){
if (Serial1.available()){ if (Serial3.available()){
digitalWrite(B_LED_PIN, HIGH); // Blink Yellow LED if we are sending data to GPS digitalWrite(B_LED_PIN, HIGH); // Blink Yellow LED if we are sending data to GPS
Serial.write(Serial1.read()); Serial1.write(Serial3.read());
digitalWrite(B_LED_PIN, LOW); digitalWrite(B_LED_PIN, LOW);
} }
if (Serial1.available()){
digitalWrite(C_LED_PIN, HIGH); // Blink Red LED if we are receiving data from GPS
Serial3.write(Serial1.read());
digitalWrite(C_LED_PIN, LOW);
}
if(Serial.available() > 0){ if(Serial.available() > 0){
return (0); return (0);
} }
} }
} }
static int8_t static int8_t
test_xbee(uint8_t argc, const Menu::arg *argv) test_xbee(uint8_t argc, const Menu::arg *argv)