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

This commit is contained in:
Peter Barker 2023-09-26 07:36:18 +10:00 committed by Peter Barker
parent 4e0bc79002
commit 05e5d2e6bb
2 changed files with 0 additions and 6 deletions

View File

@ -501,10 +501,6 @@ void AP_SerialManager::init()
case SerialProtocol_Aerotenna_USD1: case SerialProtocol_Aerotenna_USD1:
state[i].protocol.set_and_save(SerialProtocol_Rangefinder); state[i].protocol.set_and_save(SerialProtocol_Rangefinder);
break; break;
case SerialProtocol_Volz:
// Note baudrate is hardcoded to 115200
state[i].baud.set_and_default(AP_SERIALMANAGER_VOLZ_BAUD); // update baud param in case user looks at it
break;
case SerialProtocol_Sbus1: case SerialProtocol_Sbus1:
state[i].baud.set_and_default(AP_SERIALMANAGER_SBUS1_BAUD / 1000); // update baud param in case user looks at it state[i].baud.set_and_default(AP_SERIALMANAGER_SBUS1_BAUD / 1000); // update baud param in case user looks at it
uart->begin(state[i].baudrate(), uart->begin(state[i].baudrate(),

View File

@ -113,8 +113,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_VOLZ_BAUD 115
#define AP_SERIALMANAGER_ROBOTIS_BUFSIZE_RX 128 #define AP_SERIALMANAGER_ROBOTIS_BUFSIZE_RX 128
#define AP_SERIALMANAGER_ROBOTIS_BUFSIZE_TX 128 #define AP_SERIALMANAGER_ROBOTIS_BUFSIZE_TX 128