Peter Johnson
4e2c3051be
[wpilibc] Use std::string_view instead of Twine ( #3380 )
...
Use fmtlib where needed for string formatting into std::string_view.
2021-05-26 17:44:18 -07:00
Peter Johnson
50915cb7ed
[wpilibc] MotorSafety::GetDescription(): Return std::string ( #3390 )
...
This is only called in an error condition, so it's not necessary to over
optimize it.
2021-05-26 07:25:32 -07:00
Tyler Veness
f4e2d26d58
[wpilibc] Move NullDeleter from frc/Base.h to wpi/NullDeleter.h ( #3387 )
...
frc/Base.h was also deleted because it's now empty.
2021-05-26 07:24:53 -07:00
Peter Johnson
cb0051ae60
[wpilibc] SimDeviceSim: use fmtlib ( #3389 )
...
Also clean up several sim classes to use the channel constructor.
2021-05-26 07:23:13 -07:00
Tyler Veness
a238cec12b
[wpiutil] Deprecate wpi::math constants in favor of wpi::numbers ( #3383 )
...
The constants were moved from std::math to std::numbers before
ratification in C++20.
2021-05-26 00:09:36 -07:00
Tyler Veness
393bf23c0c
[ntcore, cscore, wpiutil] Standardize template impl files on .inc extension (NFC) ( #3124 )
2021-05-25 22:19:30 -07:00
Tyler Veness
e7d9ba135c
[sim] Disable flaky web server integration tests ( #3388 )
...
The digital output test sometimes fails on Linux and the digital input
test sometimes fails on macOS.
2021-05-25 20:56:35 -07:00
Tyler Veness
0a0003c110
[wpilibjExamples] Fix name of Java swerve drive pose estimator example ( #3382 )
2021-05-25 20:55:24 -07:00
Tyler Veness
7e1b27554c
[wpilibc] Use default copies and moves when possible ( #3381 )
...
The removal of ErrorBase allowed the defaults to be used in more places.
2021-05-25 20:54:39 -07:00
Tyler Veness
fb2a56e2d6
[wpilibc] Remove START_ROBOT_CLASS macro ( #3384 )
2021-05-25 20:53:26 -07:00
Tyler Veness
84218bfb45
[wpilibc] Remove frc namespace shim ( #3385 )
2021-05-25 20:52:50 -07:00
Tyler Veness
dd78243406
[wpilibc] Remove C++ compiler version static asserts ( #3386 )
...
frc/Base.h isn't the first header included basically anywhere, so the
compiler will fail on C++17 things before the asserts in this header are
processed.
2021-05-25 20:52:23 -07:00
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