mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +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.