mirror of https://github.com/ArduPilot/ardupilot
gcs console: uartb fixup
This commit is contained in:
parent
7017a35fc3
commit
70a3ee738a
|
@ -42,11 +42,11 @@ void console_loopback() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setup(void) {
|
void setup(void) {
|
||||||
/* Allocate large enough buffers on uart0 to support mavlink */
|
/* Allocate large enough buffers on uartA to support mavlink */
|
||||||
hal.uart0->begin(115200, 128, 256);
|
hal.uartA->begin(115200, 128, 256);
|
||||||
|
|
||||||
/* Setup GCS_Mavlink library's comm 0 port. */
|
/* Setup GCS_Mavlink library's comm 0 port. */
|
||||||
mavlink_comm_0_port = hal.uart0;
|
mavlink_comm_0_port = hal.uartA;
|
||||||
|
|
||||||
char hello[] = "Hello statustext\r\n";
|
char hello[] = "Hello statustext\r\n";
|
||||||
try_send_statustext(MAVLINK_COMM_0, hello, strlen(hello));
|
try_send_statustext(MAVLINK_COMM_0, hello, strlen(hello));
|
||||||
|
|
Loading…
Reference in New Issue