AP_SerialManager: move serial port init of RobotisServo protocol into RobotisServo library

This commit is contained in:
Peter Barker 2023-09-26 08:05:51 +10:00
parent 9e16112e7f
commit 8eb2d9d066
2 changed files with 0 additions and 11 deletions

View File

@ -501,14 +501,6 @@ void AP_SerialManager::init()
uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE);
break; 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: case SerialProtocol_SLCAN:
uart->begin(state[i].baudrate(), uart->begin(state[i].baudrate(),
AP_SERIALMANAGER_SLCAN_BUFSIZE_RX, AP_SERIALMANAGER_SLCAN_BUFSIZE_RX,

View File

@ -108,9 +108,6 @@
#define AP_SERIALMANAGER_GIMBAL_BUFSIZE_RX 128 #define AP_SERIALMANAGER_GIMBAL_BUFSIZE_RX 128
#define AP_SERIALMANAGER_GIMBAL_BUFSIZE_TX 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 // MegaSquirt EFI protocol
#define AP_SERIALMANAGER_EFI_MS_BAUD 115 #define AP_SERIALMANAGER_EFI_MS_BAUD 115
#define AP_SERIALMANAGER_EFI_MS_BUFSIZE_RX 512 #define AP_SERIALMANAGER_EFI_MS_BUFSIZE_RX 512