APM1: Delay serial3 init to not brick Xbee radios

This commit is contained in:
Craig Elder 2012-08-24 17:55:20 -07:00
parent f1ba9c08e5
commit dc60fe5616
1 changed files with 5 additions and 5 deletions

View File

@ -49,11 +49,6 @@ Board_APM1::Board_APM1(mode_e mode, MAV_TYPE vehicle, options_t options) : AP_Bo
debug = &Serial;
debug->println_P(PSTR("initialized debug port"));
// gcs
Serial3.begin(telemBaud, 128, 128);
gcsPort = &Serial3;
gcsPort->println_P(PSTR("initialized gcs port"));
// hil
Serial1.begin(hilBaud, 128, 128);
hilPort = &Serial1;
@ -179,6 +174,11 @@ Board_APM1::Board_APM1(mode_e mode, MAV_TYPE vehicle, options_t options) : AP_Bo
imu = new AP_IMU_INS(ins, k_sensorCalib);
imu->init(IMU::WARM_START,delay,scheduler);
debug->println_P(PSTR("setup completed"));
// gcs
Serial3.begin(telemBaud, 128, 128);
gcsPort = &Serial3;
gcsPort->println_P(PSTR("initialized gcs port"));
}
} // namespace apo