From 8eb2d9d06632d45b2c91626a6f030d4c5c733f5e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 26 Sep 2023 08:05:51 +1000 Subject: [PATCH] AP_SerialManager: move serial port init of RobotisServo protocol into RobotisServo library --- libraries/AP_SerialManager/AP_SerialManager.cpp | 8 -------- libraries/AP_SerialManager/AP_SerialManager_config.h | 3 --- 2 files changed, 11 deletions(-) diff --git a/libraries/AP_SerialManager/AP_SerialManager.cpp b/libraries/AP_SerialManager/AP_SerialManager.cpp index 7b805c767e..d39f488eed 100644 --- a/libraries/AP_SerialManager/AP_SerialManager.cpp +++ b/libraries/AP_SerialManager/AP_SerialManager.cpp @@ -501,14 +501,6 @@ void AP_SerialManager::init() uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); break; - case SerialProtocol_Robotis: - uart->begin(state[i].baudrate(), - AP_SERIALMANAGER_ROBOTIS_BUFSIZE_RX, - AP_SERIALMANAGER_ROBOTIS_BUFSIZE_TX); - uart->set_unbuffered_writes(true); - uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); - break; - case SerialProtocol_SLCAN: uart->begin(state[i].baudrate(), AP_SERIALMANAGER_SLCAN_BUFSIZE_RX, diff --git a/libraries/AP_SerialManager/AP_SerialManager_config.h b/libraries/AP_SerialManager/AP_SerialManager_config.h index 8b50422058..9fe6bb8c63 100644 --- a/libraries/AP_SerialManager/AP_SerialManager_config.h +++ b/libraries/AP_SerialManager/AP_SerialManager_config.h @@ -108,9 +108,6 @@ #define AP_SERIALMANAGER_GIMBAL_BUFSIZE_RX 128 #define AP_SERIALMANAGER_GIMBAL_BUFSIZE_TX 128 -#define AP_SERIALMANAGER_ROBOTIS_BUFSIZE_RX 128 -#define AP_SERIALMANAGER_ROBOTIS_BUFSIZE_TX 128 - // MegaSquirt EFI protocol #define AP_SERIALMANAGER_EFI_MS_BAUD 115 #define AP_SERIALMANAGER_EFI_MS_BUFSIZE_RX 512