allwpilib
allwpilib copied to clipboard
Official Repository of WPILibJ and WPILibC
We have a lot of sensor classes with various issues that would cause even more sensor classes. Due to that, I suggest we put all new sensor classes in a...
Resolves #4302
They use setpoint where it should be reference
**Is your feature request related to a problem? Please describe.** We currently have Encoder, AnalogEncoder, and DutyCycleEncoder. None of them are unit-safe. **Describe the solution you'd like** To facilitate strong...
This adds/fixes some common cases of dimensional analysis for `times()` and `divide()` in the Java units library: - `Dimensionless * U -> U` - `Dimensionless * Per -> U` -...
Add Newtons for force and NewtonMeters for torque to the units API. Also added singular aliases
So the main inspiration for this reorganization was to provide a means of creating measures in this form `Measure measure = RadiansPerSecondPerSecond.of(3.0) ` instead of `Measure measure = RadiansPerSecondPerSecond.of(3)` which...
Partially addresses #6683. ~~I'm wondering if it would instead be preferrable to have an inverse() method on Unit that can be overridden by child units. So Velocity and Per would...
Otherwise users get cryptic errors like so: https://www.chiefdelphi.com/forums/showpost.php?p=1646981&postcount=6
See https://github.com/wpilibsuite/allwpilib/issues/6680#issuecomment-2142182644