Releases: VOLTEC6647/lib6647
Releases · VOLTEC6647/lib6647
Moved from simple-json to jackson!
Moved from simple-json to jackson!
- SuperComponents and JController profiles are now read using jackson instead of simple-json.
- SuperComponents now utilize multithreading for initialization.
- JController class significantly improved.
- SuperComponent initialization errors are now also reported to the DriverStation.
- Overall code optimization here and there.
That's it for now, more features soon to come!
HyperComponents and Exception Handling!
HyperComponents are here (but only beginning)!
- HyperComponents: essentially a Wrapper for regular Components, which can then be configured via JSON. As of now there's only HyperComponents available for:
- DoubleSolenoid (two HyperSolenoids, pretty much)
- WPI_TalonSRX
- Solenoid (adds a toggle method)
- WPI_VictorSPX
- Added SuperDoubleSolenoid SuperComponent.
- Driver Station no longer reports warnings, you must select "+Prints" option for JSON initialization errors.
- Doubled tolerance for triggering axisButton input (those pesky old controllers!).
- Finally got around to doing proper Exception handling.
- I don't exactly remember ALL changes in a new version, but I do document everything in every commit I do.
That's it for now, more features soon to come!
RISE Final Code.
Features
Generic WPILib Object initialization and configuration via JSON files. The following Components are currently supported with fair customizability (more components/customizations can be added if needed/requested):
- Compressor (WPILib)
- DigitalInput (WPILib)
- Encoder (WPILib)
- PowerDistributionPanel (WPILib)
- Solenoid (WPILib)
- Ultrasonic (WPILib)
- WPI_TalonSRX (CTRE)
- WPI_VictorSPX (CTRE)
These interfaces must be implemented into a class/subsystem which extends from the following:
- SuperSubsystem, extends from Subsystem (WPILib).
- PIDSuperSubsystem, extends from PIDSubsystem (WPILib).
Additionally, there's a wrapper for WPILib's Controller class that adds simple button initialization/calling via JSON or button/axis number—JController.
Your OI class must extend ButtonHelper in order to call Buttons from the HashMap storing them.