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
FluidButton doesn't poll the joystick port from the fluid constant each time get() is called.
Instead, listeners are used to update the value in memory when it changes.
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
FluidButton
doesn't poll the joystick port from the fluid constant each timeget()
is called.Testing Performed
Environment: Automated testing.
Awaiting more testing.