Starlight220
f57c188f2e
[wpilib] Add AnalogEncoder(int) ctor ( #3273 )
2021-04-02 08:26:41 -07:00
Prateek Machiraju
8471c4fb26
[wpilib] FieldObject2d: Add setTrajectory() method ( #3277 )
2021-04-01 22:08:07 -07:00
Peter Johnson
c97acd18e7
[glass] Field2d enhancements ( #3234 )
...
- Add raw support for pose lists > 255/3 in length
- Improve drag selection, especially with closely overlapping objects
- Drag selection of corner also highlights center of object with smaller circle
- Multiple styles (box, line, closed line, track)
- Configurable line and arrow settings (color, weight)
- Add tooltip for object name, index, x, y, rotation
- Context menu for pose edit/add/remove
- View/edit in feet or inches as well as meters
- Configurable object selectability
Implementation: use vector of Pose2d internally, use units
2021-03-27 13:34:44 -07:00
Prateek Machiraju
ffb590bfcc
[wpilib] Fix Compressor sendable properties ( #3269 )
2021-03-26 21:20:54 -07:00
Peter Johnson
10c038d9bf
[glass] Plot: Fix window creation after removal ( #3264 )
...
Previously the following sequence was broken:
- Add two plot windows (creates Plot<0> and Plot<1>)
- Delete Plot<0>
- Try to create a plot window
This failed because it would try to create Plot<1>, which already existed.
It was necessary to also destroy Plot<1> before another plot could be added.
This change fixes this case by trying all 0-N cases.
2021-03-21 18:06:18 -07:00
Peter Johnson
2d2eaa3eff
[wpigui] Ensure window will be initially visible ( #3256 )
...
Only set the initial window position if the window X/Y postion is within one
of the connected monitor work areas.
2021-03-21 12:39:33 -07:00
Prateek Machiraju
4d28b1f0cd
[wpimath] Use JNI for trajectory serialization ( #3257 )
2021-03-21 12:38:23 -07:00
Peter Johnson
3de800a607
[wpimath] TrajectoryUtil.h: Comment formatting (NFC) ( #3262 )
2021-03-21 11:40:15 -07:00
Peter Johnson
eff5923778
[glass] Plot: Don't overwrite series ID ( #3260 )
2021-03-21 11:14:25 -07:00
Peter Johnson
c8521a3c33
[glass] Plot: Set reasonable default window size ( #3261 )
2021-03-21 10:50:41 -07:00
Peter Johnson
d71eb2cf39
[glass] Plot: Show full source name as tooltip and in popup ( #3255 )
2021-03-20 20:59:31 -07:00
Peter Johnson
2c98939c18
[glass] StringChooser: Don't call SameLine() at end
2021-03-19 13:15:26 -07:00
Peter Johnson
a18a7409fb
[glass] NTStringChooser: Clear value of deleted entries
2021-03-19 13:15:26 -07:00
Peter Johnson
2f19cf4524
[glass] NetworkTablesHelper: listen to delete events
2021-03-19 13:15:26 -07:00
Peter Johnson
c3a8bdc240
[build] Fix clang-tidy action ( #3246 )
...
Manually install python3.8, as actions/setup-python now needs Ubuntu 20.04.
2021-03-19 08:59:14 -07:00
Peter Johnson
1032c9b917
[wpiutil] Unbreak wpi::Format on Windows ( #3242 )
...
This function relies on the behavior of snprintf returning an error value
when the buffer is too small. By default, _snprintf_s aborts on Windows
instead of returning an error value.
This caused Glass to fail when trying to print a large NT value to a string.
2021-03-16 22:04:55 -07:00
Peter Johnson
2e07902d76
[glass] NTField2D: Fix name lookup ( #3233 )
...
This was causing incorrect detection of duplicate names.
2021-03-12 16:54:26 -08:00
Prateek Machiraju
3e22e45066
[wpilib] Make KoP drivetrain simulation weight 60 lbs ( #3228 )
2021-03-07 22:54:40 -08:00
Peter Johnson
79d1bd6c8f
[glass] NetworkTablesSetting: Allow disable of server option ( #3227 )
2021-03-07 21:24:59 -08:00
Prateek Machiraju
fe341a16f5
[examples] Use more logical elevator setpoints in GearsBot ( #3198 )
2021-03-07 16:00:00 -08:00
Peter Johnson
62abf46b3f
[glass] NetworkTablesSettings: Don't block GUI ( #3226 )
...
On some systems, StopClient et al can take a long time to execute.
Instead run these on a separate thread to avoid blocking the GUI.
Also add option to get IP from DS (default on).
2021-03-07 15:40:05 -08:00
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