Murray-Bridge-Bunyips / BunyipsFTC

FIRST Tech Challenge Robotics | Teams 15215, 22407, 24736
BSD 3-Clause Clear License
4 stars 0 forks source link

Null safety #51

Closed bubner closed 7 months ago

bubner commented 7 months ago

Motors and devices can be null, caught as errors in RobotConfig instantiation. However, components still try to use these devices and ultimately throw exceptions. These exceptions are caught but can be difficult to debug.

There is a method onboard the config to check and assert null devices. However, this would be easier to implement through various utility functions. (integrating logging etc...)

bubner commented 7 months ago

https://github.com/Murray-Bridge-Bunyips/BunyipsFTC/commit/d9bed4cd2fe85d15fc5dfb47fde60a301b0f44a1