Peter Johnson
a95a5e0d9b
[glass] Move NetworkTablesSettings to libglassnt ( #3224 )
2021-03-06 22:19:00 -08:00
Prateek Machiraju
d6f6ceaba5
[build] Run Spotless formatter (NFC) ( #3221 )
...
The original PR (#2934 ) was created before we moved to Spotless so the
formatting check was never run.
2021-03-04 08:24:05 -08:00
Blake Bourque
0922f8af59
[commands] CommandScheduler.requiring(): Note return can be null (NFC) ( #2934 )
2021-03-03 23:56:57 -08:00
Prateek Machiraju
6812302ff9
[examples] Make DriveDistanceOffboard example work in sim ( #3199 )
...
Adds some basic functionality to the ExampleMotorController so that
controller inputs show up in LiveWindow widgets in simulation.
2021-03-03 23:38:13 -08:00
Prateek Machiraju
f3f86b8e78
[wpimath] Add pose estimator overload for vision + std dev measurement ( #3200 )
2021-03-03 23:37:18 -08:00
Matt Soucy
1a2680b9e5
[wpilibj] Change CommandBase.withName() to return CommandBase ( #3209 )
...
Doing this retains the Sendable portion of the type.
2021-03-03 23:35:37 -08:00
Starlight220
435bbb6a8c
[command] RamseteCommand: Output 0 if interrupted ( #3216 )
2021-02-28 22:06:34 -08:00
Tyler Veness
3cf44e0a53
[hal] Add function for changing HAL Notifier thread priority ( #3218 )
2021-02-28 22:05:26 -08:00
Prateek Machiraju
40b367513f
[wpimath] Units.java: Add kg-lb conversions ( #3203 )
2021-02-27 10:12:41 -08:00
Prateek Machiraju
9f563d584a
[glass] NT: Fix return value in StringToDoubleArray ( #3208 )
2021-02-26 08:43:12 -08:00
Peter Johnson
af4adf5379
[glass] Auto-size plots to fit window ( #3193 )
...
Plots can still be set to have a fixed height, in which case the remaining
space is distributed amongst the auto-sized plots.
2021-02-21 16:38:06 -08:00
Peter Johnson
2560146da3
[sim] GUI: Add option to show prefix in Other Devices ( #3186 )
...
Also disable rename popup for this window.
2021-02-21 16:35:49 -08:00
Peter Johnson
eae3a6397a
gitignore: Ignore .cache directory ( #3196 )
...
This is used by newer clangd versions.
2021-02-21 16:35:01 -08:00
Starlight220
959611420b
[wpilib] Require non-zero positive value for PIDController.period ( #3175 )
2021-02-16 18:07:29 -08:00
Prateek Machiraju
9522f2e8c7
[wpimath] Add methods to concatenate trajectories ( #3139 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2021-02-16 18:06:36 -08:00
Zachary Orr
e42a0b6cf0
[wpimath] Rotation2d comment formatting (NFC) ( #3162 )
2021-02-16 18:06:01 -08:00
Claudius Tewari
d1c7032dec
[wpimath] Fix order of setting gyro offset in pose estimators ( #3176 )
...
The gyro offset should be determined from the desired initial pose, not the current pose. This fix reflects the behavior of the odometry classes and the C++ holonomic pose estimators.
2021-02-16 18:04:38 -08:00
Starlight220
d241bc81ae
[sim] Add DoubleSolenoidSim and SolenoidSim classes ( #3177 )
2021-02-16 18:03:57 -08:00
Tyler Veness
cb7f39afa1
[wpilibc] Add RobotController::GetBatteryVoltage() to C++ ( #3179 )
...
This function already exists in Java.
2021-02-16 18:03:25 -08:00
Thad House
99b5ad9ebb
[wpilibj] Fix warnings that are not unused variables or deprecation ( #3161 )
...
Fix all warnings given by intellisense that are not unused variables or deprecation.
2021-02-12 22:22:11 -08:00
Thad House
c14b237757
[build] Fixup doxygen generated include dirs to match what users would need ( #3154 )
2021-02-12 22:17:39 -08:00
Starlight220
d447c7dc32
[sim] Add SimDeviceSim ctor overloads ( #3134 )
...
Better parallelism with SimDevice.create(), so teams don't have to mess with concatenating the index/channel themselves.
2021-02-12 22:17:13 -08:00
Austin Shalit
247420c9c1
[build] Remove jcenter repo ( #3157 )
2021-02-12 22:15:52 -08:00
Peter Johnson
04b112e004
[build] Include debug info in plugin published artifacts ( #3149 )
2021-02-12 22:15:16 -08:00
Prateek Machiraju
be0ce99007
[examples] Use PWMSparkMax instead of PWMVictorSPX ( #3156 )
...
This accurately reflects the motor controllers that are distributed in
the Kit of Parts.
2021-02-12 22:14:56 -08:00
Zhiquan Yeo
69e8d0b65d
[wpilib] Move RomiGyro into main wpilibc/j ( #3143 )
2021-02-12 22:14:29 -08:00
Tyler Veness
94e685e1bd
[wpimath] Add custom residual support to EKF ( #3148 )
...
Fixes #3145 .
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com >
2021-02-12 22:13:36 -08:00
Peter Johnson
5899f3dd28
[sim] GUI: Make keyboard settings loading more robust ( #3167 )
...
Check values during load and operation to avoid potential crashes due to
ini file errors or corruption.
2021-02-12 22:12:20 -08:00
Prateek Machiraju
f82aa1d564
[wpilib] Fix HolonomicDriveController atReference() behavior ( #3163 )
...
The atReference() method previously used the rotation error between the
desired trajectory state and the current pose. This was a bug because we
allow teams to use custom rotation setpoints and that wasn't being taken
into account.
2021-02-12 22:11:57 -08:00
Tyler Veness
fe5c2cf4b7
[wpimath] Remove ControllerUtil.java ( #3169 )
...
This was already removed from C++ in the offseason and replaced with
MathUtil.inputModulus(). We just neglected to do that for Java; it was
never intended to see a season release. Its implementation is incorrect
compared to inputModulus() as well.
See https://github.com/wpilibsuite/allwpilib/issues/3168 for discussion.
2021-02-12 22:10:58 -08:00
Thad House
43d40c6e9e
[wpiutil] Suppress unchecked cast in CombinedRuntimeLoader ( #3155 )
...
Because of Java's type system, it is actually literally impossible to check for this cast at runtime. So instead, the only option is to suppress it. Only suppressed for the specific function.
2021-02-07 08:20:33 -08:00
Tyler Veness
3d44d8f79c
[wpimath] Fix argument order in UKF docs (NFC) ( #3147 )
2021-02-01 23:36:32 -08:00
Peter Johnson
ba6fe8ff2e
[cscore] Add USB camera change event ( #3123 )
2021-01-31 18:52:48 -08:00
Peter Johnson
5337258888
[build] Tweak OpenCV cmake search paths to work better on Linux ( #3144 )
...
With this change, cmake finds OpenCV Java on Ubuntu with no additional search options.
2021-01-31 18:52:21 -08:00
Peter Johnson
29bf9d6ef1
[cscore] Add polled support to listener
...
Change Java VideoListener to use polling.
2021-01-31 17:06:37 -08:00
Peter Johnson
483beb6361
[ntcore] Move CallbackManager to wpiutil
2021-01-31 17:06:37 -08:00
Prateek Machiraju
fdaec77594
[examples] Instantiate m_ramseteController in example ( #3142 )
2021-01-31 17:04:16 -08:00
Peter Johnson
8494a5761b
Rename default branch to main ( #3140 )
2021-01-30 13:46:56 -08:00
Prateek Machiraju
45590eea22
[wpigui] Hardcode window scale to 1 on macOS ( #3135 )
...
This fixes an issue with scaling on Retina displays where the frame
buffer size was double that of the window size, resulting in a content
scale factor of 2. This scale factor caused elements to appear too
large, even on the smallest zoom setting.
This change does not affect external monitors on macOS because the
reported content scale was 1 anyway.
v2021.2.2
2021-01-28 21:52:13 -08:00
Prateek Machiraju
834a64920b
[build] Publish libglass and libglassnt to Maven ( #3127 )
2021-01-25 21:42:38 -08:00
Tyler Veness
2c2ccb3618
[wpimath] Fix Rotation2d equality operator ( #3128 )
2021-01-25 21:41:34 -08:00
Prateek Machiraju
fb5c8c39ae
[wpigui] clang-tidy: readability-braces-around-statements
2021-01-25 09:25:39 -08:00
Prateek Machiraju
f7d39193a4
[wpigui] Fix copyright in pfd and wpigui_metal.mm
2021-01-25 09:25:39 -08:00
Tyler Veness
aec796b212
[ntcore] Fix conditional jump on uninitialized value ( #3125 )
...
`m_last_flush` should be initialized before it's used at
Dispatcher.cpp:243.
2021-01-25 08:15:08 -08:00
Peter Johnson
fb13bb2393
[sim] GUI: Add right click popup for keyboard joystick settings ( #3119 )
2021-01-23 09:10:58 -08:00
Prateek Machiraju
c517ec6779
[build] Update thirdparty-imgui to 1.79-2 ( #3118 )
2021-01-22 19:48:49 -08:00
David Vo
e8cbf2a717
[wpimath] Fix typo in SwerveDrivePoseEstimator doc (NFC) ( #3112 )
2021-01-21 09:31:37 -08:00
Prateek Machiraju
e9c86df468
[wpimath] Add tests for swerve module optimization ( #3100 )
2021-01-20 20:44:37 -08:00
Modelmat
6ba8c289c5
[examples] Remove negative of ArcadeDrive(fwd, ..) in the C++ Getting Started Example ( #3102 )
2021-01-20 20:43:34 -08:00
Peter Johnson
3f1672e89f
[hal] Add SimDevice createInt() and createLong() ( #3110 )
2021-01-20 20:42:39 -08:00