BotsBurgh / BOTSBURGH-FTC-2024-25

Code for our FTC 2024-25 season robot
https://botsburgh.github.io/BOTSBURGH-FTC-2024-25/
GNU General Public License v2.0
3 stars 0 forks source link

Log if more than 1 voltage sensor #61

Open BD103 opened 3 months ago

BD103 commented 3 months ago

https://github.com/BotsBurgh/BOTSBURGH-FTC-2024-25/blob/b06a7797a2f9d8cfa88e9d6984c71a8c05ee3cef/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/api/Voltage.kt#L18

The Voltage API assumes that there is only one voltage sensor, so it quietly ignores any more. Once #56 is implemented, Voltage.init() could count the amount of voltage sensors and log a warning if there is more than 1.