mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:43:34 +08:00
mavlink: always forward messages to/from USB
Previously, it was not possible to enable forwarding of messages to/from teh USB instance because it does not have a param for it, like the serial instances have. With this commit, we change the default to always set forwarding on for the USB instance as that is likely desired. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -2119,6 +2119,9 @@ Mavlink::task_main(int argc, char *argv[])
|
|||||||
_ftp_on = true;
|
_ftp_on = true;
|
||||||
_is_usb_uart = true;
|
_is_usb_uart = true;
|
||||||
|
|
||||||
|
// Always forward messages to/from the USB instance.
|
||||||
|
_forwarding_on = true;
|
||||||
|
|
||||||
set_telemetry_status_type(telemetry_status_s::LINK_TYPE_USB);
|
set_telemetry_status_type(telemetry_status_s::LINK_TYPE_USB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user