Skip to content

Commit

Permalink
Disable MCU diagnostics for A200
Browse files Browse the repository at this point in the history
  • Loading branch information
hilary-luo committed Jan 27, 2025
1 parent c02884d commit 9a594bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clearpath_diagnostics/src/clearpath_diagnostic_updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ ClearpathDiagnosticUpdater::ClearpathDiagnosticUpdater()

// Set Hardware ID as serial number in diagnostics
updater_.setHardwareID(serial_number_);
if (latest_apt_firmware_version_ != "simulated") {
if (latest_apt_firmware_version_ == "not_applicable") {
RCLCPP_INFO(this->get_logger(), "No MCU indicated, MCU diagnostics disabled.");
}
else if (latest_apt_firmware_version_ != "simulated") {
// Publish MCU Status information as diagnostics
updater_.add("MCU Status", this, &ClearpathDiagnosticUpdater::mcu_status_diagnostic);
updater_.add("MCU Firmware Version", this, &ClearpathDiagnosticUpdater::check_firmware_version);
RCLCPP_INFO(this->get_logger(), "MCU diagnostics started.");
}

mcu_status_rate_ = 1.0;
Expand Down

0 comments on commit 9a594bc

Please sign in to comment.