mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
When there is more than one ultrasonic sensor, only the last sensor instantiated would work due to incorrect array index management. This replaces the previous approach with range-based for loops like the C++ implementation. Supersedes #1589.