mirror of https://github.com/ArduPilot/ardupilot
AP_SerialManager: move serial port init of RobotisServo protocol into RobotisServo library
This commit is contained in:
parent
9e16112e7f
commit
8eb2d9d066
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue