Files
PX4-Autopilot/src/systemcmds/serial_passthru/Kconfig
T
Jacob Dahl 70304fe715 [mavlink] Parameter to always start on USB (#22234)
* usb: Added parameter to enable always starting mavlink on USB.

    Refactored cdcacm_init into a module and added a paramter to allow always starting mavlink on
    USB, also added a paramter to choose the mode. The current default behavior is to wait and listen
    for data on USB and auto-detect the protocol (mavlink, nsh, ublox). This results in the mavlink
    stream not starting until something else on the mavlink network sends a packet first. The new
    default behavior is to always start mavlink.

    Added parameters
    MAV_USB_ENABLE -- default 1 (always start mavlink on USB)
    MAV_USE_MODE -- default 3 (onboard)

* added 3 retries for opening serial port in mavlink, removed sleep before sercon

* added DRIVERS_CDCACM_AUTOSTART to ark-v6x default.px4board

* added CONFIG_DRIVERS_CDCACM_AUTOSTART=y to default.px4board for boards with CONFIG_CDCACM in their nsh/defconfig

* format

* remove PGA460 from COMMON_DISTANCE_SENSOR to save flash

* remove LIS2MDL from COMMON_MAGNETOMETER to save flash

* disable CONFIG_DRIVERS_CDCACM_AUTOSTART for fmu-v5 protected.px4board

* moved and renamed parameters, removed mode logic in mavlink

* changed parameter names, added mode none

* remove parameters from mavlink
2024-05-20 12:35:29 -06:00

58 lines
1.2 KiB
Plaintext

menuconfig SYSTEMCMDS_SERIAL_PASSTHRU
bool "serial_passthru"
default n
---help---
Enable support for passing one sevice to another
i.e ttyACM to ttyS5
if SYSTEMCMDS_SERIAL_PASSTHRU
config SERIAL_PASSTHRU_UBLOX
bool "Detect and Auto Connect on U-Center messages"
default n
---help---
This option will enable the cdcacm_autostart to launch
The passthru driver.
#
# GPS Passthru device selection
#
choice
prompt "Passthru device"
default SERIAL_PASSTHRU_GPS1 if BOARD_SERIAL_GPS1 != ""
depends on SERIAL_PASSTHRU_UBLOX
---help---
This is the GPS device used as the right side of the passthru.
the path is provided by BOARD_SERIAL_GPSn
config SERIAL_PASSTHRU_GPS1
bool "GPS1"
depends on BOARD_SERIAL_GPS1 !=""
config SERIAL_PASSTHRU_GPS2
bool "GPS2"
depends on BOARD_SERIAL_GPS2 !=""
config SERIAL_PASSTHRU_GPS3
bool "GPS3"
depends on BOARD_SERIAL_GPS3 !=""
config SERIAL_PASSTHRU_GPS4
bool "GPS4"
depends on BOARD_SERIAL_GPS4 !=""
config SERIAL_PASSTHRU_GPS5
bool "GPS5"
depends on BOARD_SERIAL_GPS5 !=""
endchoice
config SERIAL_PASSTHRU_UBLOX_BAUDRATE
string "baudrate"
depends on SERIAL_PASSTHRU_UBLOX
default "115200"
---help---
This option sets the baudrate for the passthru.
endif #SYSTEMCMDS_SERIAL_PASSTHRU