Skip to content

Commit

Permalink
remove parameters from mavlink
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl committed May 15, 2024
1 parent 9bbccbe commit 96f4e72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
6 changes: 3 additions & 3 deletions src/drivers/cdcacm_autostart/cdcacm_autostart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void CdcAcmAutostart::state_connecting()
}

if (_sys_usb_auto.get() == 2) {
PX4_INFO("Starting mavlink on %s (MAV_USB_ENABLE=1)", USB_DEVICE_PATH);
PX4_INFO("Starting mavlink on %s (SYS_USB_AUTO=2)", USB_DEVICE_PATH);

if (start_mavlink()) {
_state = UsbAutoStartState::connected;
Expand Down Expand Up @@ -639,8 +639,8 @@ int CdcAcmAutostart::print_usage(const char *reason)
R"DESCR_STR(
### Description
This module listens on USB and auto-configures the protocol depending on the bytes received.
The supported protocols are: MAVLink, nsh, and ublox serial passthrough. If the parameter MAV_USB_ENABLE in
set the module will only try to start mavlink as long as the USB VBUS is detected. Otherwise it will spin
The supported protocols are: MAVLink, nsh, and ublox serial passthrough. If the parameter SYS_USB_AUTO=2
the module will only try to start mavlink as long as the USB VBUS is detected. Otherwise it will spin
and continue to check for VBUS and start mavlink once it is detected.
)DESCR_STR");

Expand Down
29 changes: 0 additions & 29 deletions src/modules/mavlink/mavlink_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,32 +155,3 @@ PARAM_DEFINE_INT32(MAV_HB_FORW_EN, 1);
* @max 250
*/
PARAM_DEFINE_INT32(MAV_RADIO_TOUT, 5);

/**
* Always start MAVLink on USB
*
* @value 0 Auto-detect
* @value 1 Always MAVLink
* @group MAVLink
*/
PARAM_DEFINE_INT32(MAV_USB_ENABLE, 1);

/**
* Specify MAVLink mode for USB port
*
* @value 0 normal
* @value 1 custom
* @value 2 onboard
* @value 3 osd
* @value 4 magic
* @value 5 config
* @value 6 iridium
* @value 7 minimal
* @value 8 extvision
* @value 9 extvisionmin
* @value 10 gimbal
* @value 11 onboard_low_bandwidth
* @value 12 uavionix
* @group MAVLink
*/
PARAM_DEFINE_INT32(MAV_USB_MODE, 2);

0 comments on commit 96f4e72

Please sign in to comment.