Skip to content

Validate hardware parameters - #8

Merged
s2015-turtle merged 1 commit into
mainfrom
fix/validate-hardware-parameters
Jul 24, 2026
Merged

Validate hardware parameters#8
s2015-turtle merged 1 commit into
mainfrom
fix/validate-hardware-parameters

Conversation

@s2015-turtle

Copy link
Copy Markdown
Owner

Summary

  • reject non-finite gains, offsets, and protocol ranges during configuration parsing
  • validate can_timeout_ticks before converting it to uint32_t
  • reject blank CAN transmit and receive topic names
  • add direct HardwareInfo parser tests for valid boundaries and invalid values

Why

NaN gains or offsets and overflowing watchdog values could pass configuration parsing and reach runtime command generation.

User impact

Valid configurations are unchanged. Invalid configurations now fail hardware initialization with a descriptive error.

Validation

  • git diff --check
  • clang-format --dry-run --Werror
  • CI will build and test all supported ROS 2 distributions
  • no local build was run on this machine

Closes #5

@s2015-turtle s2015-turtle added bug Something isn't working maintenance Refactoring, cleanup, and repository maintenance labels Jul 23, 2026
@s2015-turtle
s2015-turtle marked this pull request as ready for review July 24, 2026 04:50
@s2015-turtle
s2015-turtle merged commit db1d54b into main Jul 24, 2026
5 checks passed
@s2015-turtle
s2015-turtle deleted the fix/validate-hardware-parameters branch July 24, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working maintenance Refactoring, cleanup, and repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reject non-finite and out-of-range hardware parameters

1 participant