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

Add a property to detect whether an API is initialized #35

Closed BD103 closed 5 months ago

BD103 commented 5 months ago

Occasionally you may write a class that depends on an API, but is not an API itself so it cannot use the built-in dependencies system. This PR adds the boolean property API.isInit, which returns true if the API has been initialized.

I plan to use this as part of #26, so you don't try to use a KiwiDrive without initialized TriWheels first.