FRC2706 / 2020-2706-Robot-Code

The Robot Code for the 2020 FIRST Robotics Competition INFINITE RECHARGE
Other
4 stars 2 forks source link

Merge FluidConstants -> Master #49

Closed nrgill28 closed 4 years ago

nrgill28 commented 4 years ago

This adds FluidConstants - 'constant' variables that can be edited over network tables while the robot is disabled.

Closes #46: Constants can be of any type, defined as FluidConstant<type> Constants can be updated locally using FluidConstant.setValue(T val) Constants can be updated remotely over network tables by changing the value there. Visit the Wiki page in this repo to see more info (NOTE: The robot must be disabled to update constants over network tables)

Tested using the standalone RoboRio and the WPILib 2020 robot code simulator.