Tyler Veness
fb2ee8ec34
[wpilib] Add TimedRobot functions for running code on mode exit ( #3499 )
...
Currently, we have functions like TeleopInit() for running code on mode
entry, but no such functions for running code on mode exit, and it's
cumbersome to add those in user code without making a custom robot
class. This PR adds exit functions to TimedRobot.
Some example use cases include DisabledExit() for operations when the
robot enables (whether that be into teleop, autonomous, or test) and
AutonomousExit() for disabling feedback controllers.
2021-08-05 19:08:29 -07:00
PJ Reiniger
94e0db7963
[wpilibc] Add more unit tests ( #3494 )
2021-08-05 19:04:51 -07:00
sciencewhiz
b253246959
[wpilibj] Add units to parameter names (NFC) ( #3497 )
2021-08-05 18:04:20 -07:00
Thad House
1ac73a247e
[hal] Rename PowerDistributionPanel to PowerDistribution ( #3466 )
...
Makes HAL more generic for the PDP, to enable the Rev PDH in the future.
2021-08-04 20:31:17 -07:00
sciencewhiz
2014115bca
[examples] frisbeebot: Fix typo and reflow comments (NFC) ( #3498 )
2021-08-01 07:17:51 -07:00
liorsagy
4a944dc397
[examples] Consistently use 0 for controller port ( #3496 )
2021-07-31 20:39:50 -07:00
Tyler Veness
3838cc4ec4
Use unicode characters in docs equations ( #3487 )
...
javac and javadoc needed the encoding set to UTF-8.
2021-07-29 22:42:43 -07:00
Aditya Tomar
85748f2e6f
[examples] Add C++ TankDrive example ( #3493 )
...
This is a basic C++ example that demonstrates a simple differential drive implementation using “tank”-style controls through the DifferentialDrive class and an ordinary joystick.
2021-07-28 21:52:14 -07:00
Tyler Veness
d7b8aa56dc
[wpilibj] Rename DriverStation In[Mode] functions to follow style guide ( #3488 )
2021-07-26 07:29:54 -07:00
Tyler Veness
16e096cf86
[build] Fix CMake Windows CI ( #3490 )
2021-07-26 07:28:52 -07:00
Tyler Veness
50af74c38f
[wpimath] Clean up NumericalIntegration and add Discretization tests ( #3489 )
...
* Rename Butcher tableau sections in NumericalIntegration such that
top-left is c, top-right is A, and bottom-right is b
* Move edu.wpi.first.math.Discretization to
edu.wpi.first.math.system.Discretization
* Sort Java Discretization to match C++ function order
* Add tests for Java Discretization
* Required adding Runge-Kutta time-varying impl to tests
* Move C++ Runge-Kutta time-varying impl to tests only
* Users don't need it
2021-07-25 07:42:59 -07:00
Tyler Veness
bfc209b120
Automate fmt update ( #3486 )
...
Also refactored upstream_utils to make writing and maintaining new
upstream repo extractions easier.
2021-07-23 09:01:44 -07:00
Austin Shalit
e7f9331e4b
[build] Update to Doxygen 1.9.1 ( #3008 )
2021-07-22 18:33:15 -07:00
Tyler Veness
ab8e8aa2a1
[wpimath] Update drake with upstream ( #3484 )
...
Our patches for the DARE and [[noreturn]] attributes were merged
upstream. We missed their monthly release window by a day, so we'll use
a commit hash for now.
2021-07-22 17:48:48 -07:00
Lucas
1ef826d1da
[wpimath] Fix IOException path in WPIMath JNI ( #3485 )
...
The current 2021.3.1 release refers to `java/lang/IOException` which causes the following exception when using `toPathweaverJson` or `fromPathweaverJson`:
```
java.lang.NoClassDefFoundError: java/lang/IOException
at edu.wpi.first.math.WPIMathJNI.fromPathweaverJson(Native Method)
at edu.wpi.first.wpilibj.trajectory.TrajectoryUtil.fromPathweaverJson(TrajectoryUtil.java:79)
```
2021-07-22 17:48:33 -07:00
Tyler Veness
52bddaa97b
[wpimath] Disable iostream support for units and enable fmtlib ( #3481 )
...
Supersedes #2497 .
2021-07-13 13:41:07 -05:00
Tyler Veness
e4dc3908bb
[wpiutil] Upgrade to fmtlib 8.0.1 ( #3483 )
2021-07-13 13:39:14 -05:00
Tyler Veness
1daadb812f
[wpimath] Implement Dormand-Prince integration method ( #3476 )
...
Also refactored RKF45 implementation to match the new style, which is
easier to read.
The tests were switched from RKF45 to RKDP since it's more accurate.
2021-07-11 09:42:33 -05:00
Tyler Veness
9c2723391b
[cscore] Add [[nodiscard]] to GrabFrame functions ( #3479 )
...
Closes #3086 .
2021-07-11 09:41:12 -05:00
Tyler Veness
7a8796414c
[wpilib] Add Notifier integration tests ( #3480 )
...
Closes #2610 .
2021-07-11 09:39:42 -05:00
Tyler Veness
f8f13c536f
[wpilibcExamples] Prefix decimal numbers with 0 ( #3478 )
2021-07-11 09:38:13 -05:00
Tyler Veness
1adb69c0fd
[ntcore] Use "NetworkTables" instead of "Network Tables" in NT specs ( #3477 )
...
Closes #3280 .
2021-07-11 09:37:27 -05:00
Tyler Veness
5f5830b960
Upload wpiformat diff if one exists ( #3474 )
...
This means users will be able to apply it locally with "git apply".
2021-07-09 21:42:20 -05:00
Tyler Veness
9fb4f35bb6
[wpimath] Add tests for DARE overload with Q, R, and N matrices ( #3472 )
...
The autodiff headers weren't used by the tests, so they were removed.
2021-07-09 21:41:33 -05:00
Tyler Veness
c002e6f926
Run wpiformat ( #3473 )
...
A recent PR had an earlier version of wpiformat ran on it with more
lenient rules.
2021-07-09 20:49:13 -05:00
Thad House
c154e5262e
[wpilib] Make solenoids exclusive use, PCM act like old sendable compressor ( #3464 )
2021-07-09 15:11:12 -07:00
Thad House
6ddef1cca6
[hal] JNI setDIO: use a boolean and not a short ( #3469 )
2021-07-08 23:42:31 -05:00
Tyler Veness
9d68d95825
Remove extra newlines after open curly braces (NFC) ( #3471 )
2021-07-08 23:41:30 -05:00
Tyler Veness
a4233e1a16
[wpimath] Add script for updating Drake ( #3470 )
...
Common functionality between the Drake and Eigen update scripts was
refactored into a library.
2021-07-08 22:36:01 -05:00
Prateek Machiraju
39373c6d2d
Update README.md for new GCC version requirement ( #3467 )
2021-07-02 19:06:30 -07:00
Prateek Machiraju
d29acc90a2
[wpigui] Add option to reset UI on exit ( #3463 )
...
Also add wpiutil as a dependency for wpigui.
2021-06-26 22:48:54 -07:00
Peter Johnson
a371235b0d
[ntcore] Fix dangling pointer in logger ( #3465 )
...
This is a breaking change (it changes LogMessage::filename from const
char* to std::string) but there should be few users of it.
2021-06-26 22:47:52 -07:00
Tyler Veness
53b4891a5e
[wpilibcintegrationtests] Fix deprecated Preferences usage ( #3461 )
v2022.0.0-alpha-2
2021-06-23 21:58:27 -07:00
Prateek Machiraju
646ded9123
[wpimath] Remove incorrect discretization in pose estimators ( #3460 )
2021-06-23 21:57:52 -07:00
Peter Johnson
ea0b8f48e6
Fix some deprecation warnings due to fmtlib upgrade ( #3459 )
2021-06-23 21:57:32 -07:00
Prateek Machiraju
2067d7e300
[wpilibjexamples] Add wpimathjni, wpiutiljni to library path ( #3455 )
2021-06-22 06:33:24 -07:00
Tyler Veness
866571ab41
[wpiutil] Upgrade to fmtlib 8.0.0 ( #3457 )
2021-06-21 20:57:42 -07:00
Thad House
4e1fa03087
[build] Skip PDB copy on windows build servers ( #3458 )
2021-06-21 20:56:42 -07:00
Peter Johnson
b45572167d
[build] Change CI back to 18.04 docker images ( #3456 )
...
This reverts commit d068fb321f (#3420 ).
The 18.04 docker images now use GCC 8, which was the original reason for
updating. 20.04 uses a much more recent libc, so staying with 18.04
enables more Linux platforms to use the binaries.
2021-06-20 23:03:29 -07:00
Tyler Veness
57a160f1b3
[wpilibc] Fix LiveWindow deprecation warning in RobotBase skeleton template ( #3454 )
2021-06-19 20:45:56 -07:00
Thad House
29ae8640d9
[HLT] Implement duty cycle cross connect tests ( #3453 )
2021-06-19 20:11:52 -07:00
Thad House
ee6377e54b
[HLT] Add relay and analog cross connects ( #3452 )
2021-06-19 13:03:58 -07:00
Peter Johnson
b0f1ae7ea3
[build] CMake: Build the HAL even if WITH_CSCORE=OFF ( #3449 )
...
Also handle the case of WITH_WPILIB=OFF WITH_SIMULATION_MODULES=ON.
2021-06-19 09:30:49 -07:00
Tyler Veness
7aae2b72dc
Replace std::to_string() with fmt::format() ( #3451 )
2021-06-19 09:30:01 -07:00
Thad House
73fcbbd748
[HLT] Add relay digital cross connect tests ( #3450 )
2021-06-19 01:21:56 -07:00
Thad House
e7bedde835
[HLT] Add PWM tests that use DMA as the back end ( #3447 )
...
Both a decent DMA test, and slightly more reliable PWM test.
2021-06-19 01:21:07 -07:00
Peter Johnson
7253edb1e1
[wpilibc] Timer: Fix deprecated warning ( #3446 )
2021-06-18 21:00:26 -07:00
Tyler Veness
efa28125c6
[wpilibc] Add message to RobotBase on how to read stacktrace ( #3444 )
...
Also make stacktrace info an error instead of a warning in both C++ and Java.
2021-06-17 23:52:48 -07:00
Thad House
9832fcfe14
[hal] Fix DIO direction getter ( #3445 )
...
Unset means input, where the code was assuming set means input.
2021-06-17 23:03:00 -07:00
Ryan Hirasaki
49c71f9f2d
[wpilibj] Clarify robot quit message ( #3364 )
...
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com >
2021-06-16 13:24:06 -07:00