Skip to content

Commit

Permalink
AP_SerialManager: move serial port init of Volz protocol into Volz li…
Browse files Browse the repository at this point in the history
…brary
  • Loading branch information
peterbarker committed Dec 16, 2024
1 parent 4e0bc79 commit 05e5d2e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions libraries/AP_SerialManager/AP_SerialManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,6 @@ void AP_SerialManager::init()
case SerialProtocol_Aerotenna_USD1:
state[i].protocol.set_and_save(SerialProtocol_Rangefinder);
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:
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(),
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_SerialManager/AP_SerialManager_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@
#define AP_SERIALMANAGER_GIMBAL_BUFSIZE_RX 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_TX 128

Expand Down

0 comments on commit 05e5d2e

Please sign in to comment.