This commit is contained in:
trung09122002
2026-09-21 10:23:51 +07:00
parent dea92c46d2
commit 641db2e914
6 changed files with 49 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ class ZlacWrapper : public BaseInterface {
"(systemctl status motor_control zlac_ros)"
"\n - dcf_path: " + cfg_.dcf_path);
}
if (!impl_->enableHardware()) {
if (!impl_->enableHardware(cfg_.accel_ramp_ms)) {
impl_.reset();
return StatusResponse::Error(
StatusCode::kUnavailable,
@@ -129,7 +129,8 @@ class ZlacWrapper : public BaseInterface {
VSLAM_INFO("base: ZLAC8015D tren " << cfg_.can_channel << " node "
<< static_cast<int>(cfg_.can_node_id) << ", banh r="
<< cfg_.wheel_radius << " m cach nhau " << cfg_.wheel_separation
<< " m, " << counts_per_rev_ << " count/vong");
<< " m, " << counts_per_rev_ << " count/vong, ramp "
<< cfg_.accel_ramp_ms << " ms");
running_ = true;
poll_thread_ = std::thread([this] { PollLoop(); });