XaverianTeamRobotics / CenterstageFTCrobotcontroller

make robot move
https://robotics.xbhs.net/
BSD 3-Clause Clear License
8 stars 4 forks source link

Feature/button reg #578

Closed 24cteahan closed 10 months ago

24cteahan commented 10 months ago

Changes:

added button register must register buttons if you use the enable method, allows you to search for buttons by their use, can be helpful if you want to create a layout in another class

Controls and Usage:

add Devices.enableButtonRegistration() in construction before calling any other button method use Devices.controller#.registerButton(Button, String use) to register a button, registering twice will throw an error, and failure to register will throw an error use Devices.controller#.searchButton(String use) to search for the use registered

Reviewers:

@XaverianTeamRobotics/senior-programmers

michaell4438 commented 10 months ago

I wont delete this branch because I want somebody to work on documenting it.