mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
Merge pull request #14 from jwpleow/v1.x
Turn off ControlLoop in Disconnect
This commit is contained in:
@@ -35,6 +35,7 @@ void MobileBase::Connect(std::string dev_name, int32_t baud_rate) {
|
||||
}
|
||||
|
||||
void MobileBase::Disconnect() {
|
||||
keep_running_ = false;
|
||||
if (can_connected_) can_if_->StopService();
|
||||
if (serial_connected_ && serial_if_->IsOpened()) {
|
||||
serial_if_->StopService();
|
||||
|
||||
Reference in New Issue
Block a user