FRC2706 / 2020-2706-Robot-Code

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

AnalogSelector class #38

Closed LaraLim closed 4 years ago

LaraLim commented 4 years ago

SendableBase has been deprecated as of 2020 so this class now implements the Sendable interface. The min and max of each voltage range are now constants for easier adjustability when required. So far the returned index is accurate for 1-6, but for 7 and onward the returned index is unreliable. The voltage ranges for each index should be updated with the selector installed on the 2020 season robot.

georgetzavelas commented 4 years ago

By the way this cleanup of the previous code implementation is amazing!