Peter Johnson
da590120c4
[wpilibj] Add MotorController.setVoltage default ( #3347 )
...
This avoids a vscode deprecation warning.
2021-05-11 19:53:55 -07:00
Peter Johnson
561d53885e
[build] Update opencv to 4.5.2, imgui/implot to latest ( #3344 )
...
Also update native-utils to 2022.0.0 to start pulling 2022 artifacts.
2021-05-10 18:59:14 -07:00
Peter Johnson
44ad67ca8c
[wpilibj] Preferences: Add missing Deprecated annotation ( #3343 )
2021-05-09 18:20:42 -07:00
Peter Johnson
3fe8fc75aa
[wpilibc] Revert "Return reference from GetInstance" ( #3342 )
...
This reverts commit a79faace1b .
This change will be superseded in a non-breaking way by changing to static functions and deprecating GetInstance() entirely.
2021-05-09 18:16:07 -07:00
Peter Johnson
3cc2da3328
Merge branch '2022'
2021-05-09 14:15:40 -07:00
Tyler Veness
a3cd90dd71
[wpimath] Fix classpath used by generate_numbers.py ( #3339 )
2021-05-09 00:01:03 -07:00
Noam Zaks
d6cfdd3bae
[wpilib] Preferences: Deprecate Put* in favor of Set* ( #3337 )
...
This naming is more consistent with other APIs.
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2021-05-06 08:25:37 -07:00
Tyler Veness
ba08baabb9
[wpimath] Update Drake DARE solver to v0.29.0 ( #3336 )
...
This version incorporated the patch we were manually applying, so we're
synced back up with upstream now except for some minor #include changes
to reduce header bloat.
v2022.0.0-alpha-1
2021-05-05 09:16:55 -07:00
Tyler Veness
497b712f67
[wpilib] Make IterativeRobotBase::m_period private with getter
2021-05-04 13:41:36 -07:00
Tyler Veness
f00dfed7ac
[wpilib] Remove IterativeRobot base class
...
TimedRobot supersedes it (see commit 81498e6 for reasoning).
2021-05-04 13:41:36 -07:00
Thad House
3c08461685
[hal] Use last error reporting instead of PARAMETER_OUT_OF_RANGE ( #3328 )
...
Makes the error messages much more specific to each error.
2021-05-01 13:22:08 -07:00
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
Thad House
23d2326d1d
[hal] Report previous allocation location for indexed resource duplicates ( #3322 )
2021-05-01 10:28:30 -07:00
Thad House
e338f9f190
[build] Fix wpilibc runCpp task ( #3327 )
2021-05-01 10:26:33 -07:00
Noam Zaks
c8ff626fe2
[wpimath] Move Java classes to edu.wpi.first.math ( #3316 )
2021-05-01 08:53:30 -07:00
Noam Zaks
4e424d51f4
[wpilibj] DifferentialDrivetrainSim: Rename constants to match the style guide ( #3312 )
2021-05-01 07:09:23 -07:00
Thad House
6b50323b07
[cscore] Use Lock2DSize if possible for Windows USB cameras ( #3326 )
...
Can remove a memory copy in many cases. This also fixes a bug where any mjpeg cameras on windows wouldn't work if the fast path was taken.
2021-05-01 07:07:37 -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
Thad House
5127380727
[hal] Add HAL_GetLastError to enable better error messages from HAL calls ( #3320 )
...
This uses thread local storage so a full error string can be provided, not just an error code.
2021-04-29 09:56:54 -07:00
Noam Zaks
ced654880c
[glass, outlineviewer] Update Mac icons to macOS 11 style ( #3313 )
2021-04-25 17:30:45 -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
Peter Johnson
05ebe93180
Merge branch 'main' into 2022
2021-04-19 18:45:31 -07:00
Prateek Machiraju
aaf24e2552
[wpilib] Fix initial heading behavior in HolonomicDriveController ( #3290 )
2021-04-18 21:00:11 -07:00
Peter Johnson
8d961dfd25
[wpilibc] Remove ErrorBase ( #3306 )
...
Replace with new exception-based error reporting, consistent with Java.
This also builds stacktraces into the reporting/exceptions.
2021-04-18 20:35:29 -07:00
Peter Johnson
659b37ef9d
[wpiutil] StackTrace: Include offset on Linux ( #3305 )
2021-04-18 20:34:39 -07:00
Peter Johnson
0abf6c9045
[wpilib] Move motor controllers to motorcontrol package ( #3302 )
...
Also deprecate SpeedController in favor of motorcontrol.MotorController and
SpeedControllerGroup in favor of motorcontrol.MotorControllerGroup.
The MotorController interface is derived from the SpeedController interface
so that code such as SpeedController x = new VictorSP(1) continues to
compile (just with a warning).
SpeedControllerGroup and MotorControllerGroup are independent classes;
both implement the MotorController interface.
2021-04-17 11:27:16 -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
Peter Johnson
b7b178f49c
[wpilib] Remove Potentiometer interface
2021-04-13 22:40:55 -07:00
Peter Johnson
687066af3d
[wpilib] Remove GyroBase
2021-04-13 22:40:55 -07:00
Peter Johnson
6b168ab0c8
[wpilib] Remove PIDController, PIDOutput, PIDSource
...
Move them to the old commands vendordep so that PIDCommand and PIDSubsystem
continue to work.
This also removes Filter and LinearDigitalFilter.
2021-04-13 22:40:55 -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
3abe0b9d49
[cscore] Move java package to edu.wpi.first.cscore ( #3294 )
...
This is more consistent with the other Java packages, and also is more
correct, as we own the first.wpi.edu domain but not the full wpi.edu domain.
2021-04-10 11:42:41 -07:00
Peter Johnson
d7fabe81fe
[wpilib] Remove RobotDrive ( #3295 )
...
This has been deprecated for several years, and its functionality has been
completely superseded by other drive classes (DifferentialDrive et al).
2021-04-10 10:28:32 -07:00
Peter Johnson
1dc81669c2
[wpilib] Remove GearTooth ( #3293 )
...
This sensor has had zero usage for many years and was last in the KOP
over a decade ago. There are much better rotation sensors available,
and it's no longer worth maintaining this class.
2021-04-10 10:28:05 -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
Peter Johnson
397e569aaf
[ntcore] Remove "using wpi" from nt namespace
...
This removes the nt::ArrayRef, nt::StringRef, and nt::Twine aliases.
2021-04-08 22:35:28 -07:00
Peter Johnson
79267f9e60
[ntcore] Remove NetworkTable -> nt::NetworkTable shim
2021-04-08 22:35:28 -07:00
Peter Johnson
48ebe5736a
[ntcore] Remove deprecated Java interfaces and classes
2021-04-08 22:35:28 -07:00
Peter Johnson
c2064c78b2
[ntcore] Remove deprecated ITable interfaces
2021-04-08 22:35:28 -07:00
Peter Johnson
36608a283b
[ntcore] Remove deprecated C++ APIs
2021-04-08 22:35:28 -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