FRC2706 / 2019-2706-Robot-Code

The main robot code for the FIRST 2019 challenge: Deep Space
MIT License
2 stars 0 forks source link

More efficient FluidButton #105

Closed KyleRAnderson closed 5 years ago

KyleRAnderson commented 5 years ago

It's possible that part of the reason that the robot is overruning it's loop time was because the FluidButton always looks up the Xbox button port each time it runs the get() method.

Fixed by using the FluidConstant listener instead.

Summary of Changes

Testing Performed

Environment: Automated testing.

Awaiting more testing.

KyleRAnderson commented 5 years ago

It's still a draft @eandr127 😂.

KyleRAnderson commented 5 years ago

@eandr127 tested this on practice bot and it worked. Changed the fluid constant binding in the outline viewer and confirmed that it updated.