Tyler Veness
5ef2b4fdc0
[wpilibj] Fix @deprecated warning for SerialPort constructor ( #3329 )
...
The javadoc @deprecated tag didn't have corresponding @Deprecated
attribute.
2021-05-01 13:20:53 -07:00
Noam Zaks
4e424d51f4
[wpilibj] DifferentialDrivetrainSim: Rename constants to match the style guide ( #3312 )
2021-05-01 07:09:23 -07:00
Tyler Veness
65c148536d
[wpilibc] Fix "control reaches end of non-void function" warning ( #3324 )
2021-05-01 07:05:21 -07:00
Peter Johnson
f99f62bee4
[wpiutil] uv Handle: Use malloc/free instead of new/delete ( #3325 )
...
This avoids asan warnings for deleting a different pointer type.
2021-05-01 07:04:14 -07:00
Tyler Veness
365f5449ca
[wpimath] Fix MecanumDriveKinematics ( #3266 )
2021-04-30 15:50:16 -07:00
Starlight220
ff52f207cc
[glass, wpilib] Rewrite Mechanism2d ( #3281 )
...
Substantially improves Mechanism2d by moving it to NetworkTables and adding
a robot API to create the mechanism elements, instead of requiring a JSON file.
Co-authored-by: Peter Johnson <johnson.peter@gmail.com >
2021-04-30 13:43:59 -07:00
Tyler Veness
ee0eed143a
[wpimath] Add DCMotor factory function for Romi motors ( #3319 )
2021-04-29 09:59:35 -07:00
Peter Johnson
936d3b9f83
[templates] Add Java template for educational robot ( #3309 )
...
Educational robot is a very minimal template designed for educational use
(rather than competition).
v2021.3.1
2021-04-24 20:22:39 -07:00
Jeff Hutchison
6e31230adc
[examples] Fix odometry update in SwerveControllerCommand example ( #3310 )
...
The Drive Subsystem was supplying an incorrectly constructed
Rotation2d to the odometry update method. Rotation2d constructor
was being called with heading in degrees, not radians as required.
2021-04-24 20:07:04 -07:00
Prateek Machiraju
aaf24e2552
[wpilib] Fix initial heading behavior in HolonomicDriveController ( #3290 )
2021-04-18 21:00:11 -07:00
Peter Johnson
659b37ef9d
[wpiutil] StackTrace: Include offset on Linux ( #3305 )
2021-04-18 20:34:39 -07:00
Tyler Veness
4630191fa4
[wpiutil] circular_buffer: Use value initialization instead of passing zero ( #3303 )
...
This enables use of types that have a no-args constructor rather than one that takes an explicit zero value.
For numeric types, value initialization will result in a zero value, so this is not a functional change.
2021-04-15 11:50:07 -07:00
Tyler Veness
948625de9d
[wpimath] Document conversion from filter cutoff frequency to time constant ( #3299 )
2021-04-12 11:12:52 -07:00
Modelmat
3848eb8b16
[wpilibc] Fix flywhel -> flywheel typo in FlywheelSim ( #3298 )
2021-04-12 11:12:04 -07:00
Peter Johnson
01d0e12603
[wpilib] Revert move of RomiGyro into main wpilibc/j ( #3296 )
...
This reverts commit 69e8d0b65d (#3143 ).
We haven't released a version with this yet, and plan to make a vendor
library instead.
2021-04-10 10:27:44 -07:00
Starlight220
a1c87e1e15
[glass] LogView: Add "copy to clipboard" button ( #3274 )
2021-04-06 13:19:49 -07:00
Prateek Machiraju
fa7240a501
[wpimath] Fix typo in quintic spline basis matrix
2021-04-03 16:03:38 -07:00
Prateek Machiraju
ffb4d38e24
[wpimath] Add derivation for spline basis matrices
2021-04-03 16:03:38 -07:00
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