Tyler Veness
484cf9c0e8
[wpimath] Suppress the -Wmaybe-uninitialized warning in Eigen ( #3378 )
...
GCC 11 emits a false positive when compiling Eigen and breaks the
build.
Fixes #3363 .
2021-05-25 10:05:41 -07:00
Peter Johnson
a04d1b4f97
[wpilibc] DriverStation: Remove ReportError and ReportWarning
...
Change use cases to directly call FRC_ReportError.
2021-05-25 10:04:32 -07:00
Peter Johnson
831c10bdfc
[wpilibc] Errors: Use fmtlib
2021-05-25 10:04:32 -07:00
Peter Johnson
87603e400d
[wpiutil] Import fmtlib ( #3375 )
...
HEAD as of 5/23/2021 (dd8f38fcbbb6eedecd4d451b03ca7d817e8ae67d).
2021-05-24 23:59:35 -07:00
Peter Johnson
4426216725
[wpiutil] Add ArrayRef/std::span/wpi::span implicit conversions
2021-05-23 15:27:40 -07:00
Peter Johnson
bc15b953b4
[wpiutil] Add std::span implementation
...
Imported from https://github.com/tcbrindle/span with ifdef's removed
(as we require C++17).
2021-05-23 15:27:40 -07:00
Peter Johnson
6d20b12043
[wpiutil] StringRef, Twine, raw_ostream: Add std::string_view support ( #3373 )
2021-05-23 15:26:28 -07:00
Peter Johnson
2385c2a430
[wpilibc] Remove Utility.h ( #3376 )
...
Change last 2 uses of wpi_assert to throw error instead.
2021-05-23 15:25:08 -07:00
Tyler Veness
87384ea684
[wpilib] Fix PIDController continuous range error calculations ( #3170 )
...
The inputs should all be errors, so the range should be symmetric.
Fixes #3168 .
Fixes #3304 .
2021-05-21 23:52:30 -07:00
Tyler Veness
04dae799a2
[wpimath] Add SimpleMotorFeedforward::Calculate(velocity, nextVelocity) overload ( #3183 )
...
This is often more convenient than using the overload with velocity and
acceleration.
Fixes #3160 .
2021-05-21 23:44:10 -07:00
Tyler Veness
0768c39036
[wpilib] DifferentialDrive: Remove right side inversion ( #3340 )
...
Also refactor drive inverse kinematics into separate functions.
This allows composing them with operations separate from the drive
class.
2021-05-21 22:34:16 -07:00
Tyler Veness
8dd8d4d2d4
[wpimath] Fix redundant nested math package introduced by #3316 ( #3368 )
2021-05-21 22:29:52 -07:00
Dalton Smith
49b06beedf
[examples] Add Field2d to RamseteController example ( #3371 )
2021-05-21 22:28:29 -07:00
Tyler Veness
4c562a4457
[wpimath] Fix typo in comment of update_eigen.py ( #3369 )
...
NonMPL2.h clearly doesn't contain MPL2 code.
2021-05-21 21:39:33 -07:00
Tyler Veness
fdbbf11887
[wpimath] Add script for updating Eigen
2021-05-20 18:52:11 -07:00
Tyler Veness
f1e64b349a
[wpimath] Move Eigen unsupported folder into eigeninclude
...
This fixes relative includes in development versions of Eigen.
2021-05-20 18:52:11 -07:00
Ryan Hirasaki
224f3a05cf
[sim] Fix build error when building with GCC 11.1 ( #3361 )
2021-05-19 14:39:18 -07:00
Peter Johnson
ff56d6861d
[wpilibj] Fix SpeedController deprecated warnings ( #3360 )
...
set() and other functions also need to be repeated on the MotorController
interface to avoid deprecation warnings from vscode.
2021-05-16 19:13:54 -07:00
sciencewhiz
1873fbefba
[examples] Fix Swerve and Mecanum examples ( #3359 )
...
Fix encoder allocation and default command.
Fixes #3349
2021-05-15 21:39:00 -07:00
sciencewhiz
80b479e502
[examples] Fix SwerveBot example to use unique encoder ports ( #3358 )
...
Fixes #3089
2021-05-15 14:15:18 -07:00
PJ Reiniger
1f7c9adeeb
[wpilibjExamples] Fix pose estimator examples ( #3356 )
2021-05-14 11:10:47 -07:00
Peter Johnson
9ebc3b058d
[outlineviewer] Change default size to 600x400 ( #3353 )
2021-05-11 23:34:16 -07:00
Prateek Machiraju
e21b443a45
[build] Gradle: Make C++ examples runnable ( #3348 )
2021-05-11 19:54:53 -07:00
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