Tyler Veness
ebd2a303bf
[wpimath] Remove deprecated MakeMatrix() function ( #4202 )
2022-04-30 22:52:05 -07:00
Peter Johnson
e28776d361
[wpimath] LinearSystemLoop: Add extern templates for common cases
2022-04-30 20:38:55 -07:00
Peter Johnson
dac1429aa9
[wpimath] LQR: Use extern template instead of Impl class
2022-04-30 20:38:55 -07:00
Peter Johnson
e767605e94
[wpimath] Add typedefs for common types
...
This makes complex code significantly easier to read.
frc::Vectord<Size> = Eigen::Vector<double, Size>
frc::Matrixd<Rows, Cols> = Eigen::Matrix<double, Rows, Cols>
2022-04-30 20:38:55 -07:00
Peter Johnson
97c493241f
[wpimath] UnscentedKalmanFilter: Move implementation out-of-line
2022-04-30 20:38:55 -07:00
Peter Johnson
8ea90d8bc9
[wpimath] ExtendedKalmanFilter: Move implementation out-of-line
2022-04-30 20:38:55 -07:00
Peter Johnson
ae7b1851ec
[wpimath] KalmanFilter: Use extern template instead of Impl class
2022-04-30 20:38:55 -07:00
Peter Johnson
e3d62c22d3
[wpimath] Add extern templates for common cases
...
This helps reduce compile times and memory usage.
2022-04-30 20:38:55 -07:00
Peter Johnson
7200c4951d
[wpiutil] SymbolExports: Add WPILIB_IMPORTS for dllimport
2022-04-30 20:38:55 -07:00
Peter Johnson
84056c9347
[wpiutil] SymbolExports: Add EXPORT_TEMPLATE_DECLARE/DEFINE
2022-04-30 20:38:55 -07:00
Oblarg
09cf6eeecb
[wpimath] ApplyDeadband: add a scale param ( #3865 )
...
Also templates it in C++ so it can work with both doubles and units.
2022-04-30 20:29:48 -07:00
Austin Shalit
03230fc842
[build,ci] Enable artifactory build cache ( #4200 )
2022-04-30 20:27:23 -07:00
Jason Daming
63cf3aaa3f
[examples] Don't square ArcadeDrive inputs in auto ( #4201 )
2022-04-30 20:19:32 -07:00
Starlight220
18ff694f02
[wpimath] Add Rotation2d.fromRadians factory ( #4178 )
2022-04-30 00:19:29 -07:00
Tyler Veness
4f79ceedd9
[wpilibc] Add missing #include ( #4198 )
2022-04-30 00:07:37 -07:00
Starlight220
f7ca72fb41
[command] Rename PerpetualCommand to EndlessCommand ( #4177 )
2022-04-28 09:38:38 -07:00
bovlb
a06b3f0307
[hal] Correct documentation on updateNotifierAlarm ( #4156 )
...
The previous documentation suggested that `triggerTime` is the interval until the next alarm, but the implementation is that it is the absolute alarm time.
2022-04-26 21:53:30 -07:00
Tyler Veness
d926dd1610
[wpimath] Fix pose estimator performance ( #4111 )
...
Fixes #4087 .
2022-04-26 18:43:59 -07:00
ysthakur
51bc893bc5
[wpiutil] CircularBuffer: Change Java package-private methods to public ( #4181 )
...
The `size`, `getFirst`, `getLast`, and `resize` methods were all package-private.
Also make `size` return an `int` instead of a `double`.
2022-04-25 14:58:12 -07:00
Tyler Veness
fbe761f7f6
[build] Increase Gradle JVM heap size ( #4172 )
...
wpimath artifact publishing was running out of heap
2022-04-24 23:13:57 -07:00
Tyler Veness
5ebe911933
[wpimath] Add DifferentialDriveAccelerationLimiter ( #4091 )
2022-04-24 07:21:40 -07:00
Tyler Veness
3919250da2
[wpilibj] Remove finalizers ( #4158 )
...
They were deprecated for removal in Java 18 because they're error-prone.
Prefer AutoCloseable and Cleaner instead.
https://openjdk.java.net/jeps/421
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/ref/Cleaner.html
2022-04-24 07:21:08 -07:00
ohowe
b3aee28388
[commands] Allow BooleanSupplier for Trigger operations ( #4103 )
2022-04-24 07:20:46 -07:00
Tyler Veness
9d20ab3024
[wpilib] Allow disabling ElevatorSim gravity ( #4145 )
...
Closes #4144 .
2022-04-24 07:19:18 -07:00
Peter Johnson
aaa69f6717
[ci] Remove 32-bit Windows builds ( #4078 )
2022-04-24 07:18:49 -07:00
Tyler Veness
355a11a414
Update Java linters and fix new PMD errors ( #4157 )
...
PMD requires that variables only initialized in the constructor be
final. The compiler errors if those final variables aren't guaranteed to
be initialized, so extra else branches were added to ensure that.
PMD also requires that classes with only private constructors be final.
The equivalent C++ classes were finalized as well, except for
TimeInterpolatableBuffer because it doesn't expose factory functions.
2022-04-24 07:18:05 -07:00
Jason Daming
ffc69d406c
[examples] Reduce suggested acceleration in Ramsete example ( #4171 )
...
This value mirrors the update to the documentation in wpilibsuite/frc-docs#1792 .
2022-04-19 17:10:11 -07:00
camaj
922d50079a
[wpimath] Units: fix comment in degreesToRotations (NFC) ( #4159 )
2022-04-13 22:32:55 -07:00
Jonah Snider
dd163b62ae
[wpimath] Rotation2d: Add factory method that uses rotations ( #4166 )
...
Rotation2d.fromRotations(1).equals(new Rotation2d(2 * Math.PI)); // true
Also adds a member method to get the value of the Rotation2d in rotations.
2022-04-13 22:31:43 -07:00
Tyler Veness
bd80e220b9
[ci] Upgrade CMake actions ( #4161 )
2022-04-12 19:00:00 -07:00
Tyler Veness
aef4b16d4c
[wpimath] Remove unnecessary NOLINT in LinearPlantInversionFeedforward (NFC) ( #4155 )
2022-04-08 21:31:42 -07:00
Spud
975171609e
[wpilib] Compressor: Rename enabled to isEnabled ( #4147 )
...
This is a less confusing name, as enabled() can imply it enables the compressor.
2022-04-08 21:31:08 -07:00
Tyler Veness
5bf46a9093
[wpimath] Add ComputerVisionUtil ( #4124 )
...
Closes #4108 .
2022-04-08 21:20:53 -07:00
ohowe
f27a1f9bfb
[commands] Fix JoystickButton.getAsBoolean ( #4131 )
...
This previously always returned false; the get method it inherited was not used in the getAsBoolean defined in the Trigger class. The fix is to swap get() and getAsBoolean() implementations in the Trigger class.
2022-04-08 21:20:23 -07:00
Excalibur FRC | 6738
1b26e2d5da
[commands] Add RepeatCommand ( #4009 )
...
Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com >
2022-04-07 22:02:08 -07:00
apple
88222daa3d
[hal] Fix misspelling in AnalogInput/Output docs (NFC) ( #4153 )
...
value -> valid
(NFC)
2022-04-07 21:57:01 -07:00
Tyler Veness
81c5b41ce1
[wpilibj] Document MechanismLigament2d angle unit (NFC) ( #4142 )
2022-03-31 00:29:44 -07:00
Peter Johnson
9650e6733e
[wpiutil] DataLog: Document finish and thread safety (NFC) ( #4140 )
2022-03-29 12:28:59 -07:00
Tyler Veness
c8905ec29a
[wpimath] Remove ImplicitModelFollower dt argument ( #4119 )
...
The math works just fine without model discretization.
2022-03-29 11:29:06 -07:00
Tyler Veness
b4620f01f9
[wpimath] Fix Rotation2d interpolation in Java ( #4125 )
...
Fixes #4112 .
2022-03-29 08:42:43 -07:00
Tyler Veness
2e462a19d3
[wpimath] Constexprify units unary operators ( #4138 )
...
Fixes #4137 .
2022-03-29 08:42:08 -07:00
Peter Johnson
069f932e59
[build] Fix gl3w cmake build ( #4139 )
2022-03-28 22:31:51 -07:00
Tyler Veness
126e3de91a
[wpilibc] Remove unused SetPriority() call from Ultrasonic ( #4123 )
2022-03-24 07:24:12 -07:00
Tyler Veness
ba0dccaae4
[wpimath] Fix reference to Rotation2d.fromRadians() ( #4118 )
...
Rotation2d.fromRadians() doesn't exist. The constructor should be used
instead.
2022-03-20 21:57:03 -07:00
sciencewhiz
e1b6e5f212
[wpilib] Improve MotorSafety documentation (NFC) ( #4120 )
...
Remove OBE RobotDrive porting guide from MecanumDrive
2022-03-20 21:54:43 -07:00
Tyler Veness
8d79dc8738
[wpimath] Add ImplicitModelFollower ( #4056 )
2022-03-20 00:36:12 -07:00
Tyler Veness
78108c2aba
[wpimath] Fix PIDController having incorrect error after calling SetSetpoint() ( #4070 )
2022-03-19 23:59:00 -07:00
Tyler Veness
cdafc723fb
[examples] Remove unused LinearPlantInversionFeedforward includes ( #4069 )
2022-03-19 20:47:09 -07:00
Ashray._.g
0d70884dce
[wpimath] Add InterpolatedTreeMap ( #4073 )
...
- Add InterpolatedTreeMap for Java from team 254's 2016 MIT licensed code
- Add InterpolatedMap for C++ from team 3512's code with @calcmogul (original author) permission
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2022-03-19 20:46:42 -07:00
Tyler Veness
765efa325e
[wpimath] Remove redundant column index from vectors ( #4116 )
2022-03-19 20:44:14 -07:00