Thad House
d58a5e124a
[sim] Name DSCommJoystickPacket structure ( #2525 )
...
This fixes a C++ standards compliance issue that broke the build on Windows.
2020-06-08 21:28:21 -07:00
Prateek Machiraju
762347f005
[wpilibj] Throw separate exception for constraint misbehavior ( #2510 )
...
The most common mistake users (including contributors to WPILib) seem to make while creating new constraints is ignoring some sort of edge case that causes the calculated minimum acceleration to be greater than the calculated maximum acceleration.
This specialized exception, with its detailed error message, should make it easier and quicker for said users to debug and fix bugs within their constraints.
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2020-06-08 10:38:47 -07:00
sciencewhiz
4b76adf15b
[wpilibc] Remove incorrect timer rollover ( #2523 )
...
If the 64 bit FPGA timer rolls over, a 32 bit value is added for
the rollover, an artifact of when it was a 32 bit timer.
The 64 bit microsecond timer won't rollover for 500k years so remove the
check for simplicity.
Fixes #2504
2020-06-08 10:37:27 -07:00
Prateek Machiraju
6be1b95241
[wpilibj] Trajectory: Add zero-arg constructor ( #2513 )
...
C++ already has this.
2020-05-29 09:18:42 -07:00
sciencewhiz
38ad790612
CONTRIBUTING.md: Change Travis to Azure ( #2520 )
...
Co-authored-by: Austin Shalit <austinshalit@gmail.com >
2020-05-29 09:17:23 -07:00
sciencewhiz
86acb27e24
[wpilibc] Fix doxygen comments ( #2519 )
...
Apply doxygen comments to class instead of frc namespace.
Correct references to differential drive.
2020-05-29 09:15:46 -07:00
Starlight220
1b395fa21d
[wpilib] Implement Trajectory.equals() ( #2517 )
2020-05-27 20:43:32 -07:00
Starlight220
92380485c8
[command] Make cancel safe to call from initialize ( #2440 )
...
Fixes #2388 .
2020-05-20 21:00:34 -07:00
Starlight220
27f9a21a2c
[wpilib] Moved Watchdog output to reportWarning() ( #2413 )
2020-05-20 20:57:06 -07:00
Claudius Tewari
cf7088a462
[wpilibj] RamseteController: Fix units typo in javadocs ( #2515 )
2020-05-20 20:55:08 -07:00
Peter Johnson
67554ef3b0
[build] Add .inl files to styleguide (NFC) ( #2506 )
...
No functional changes.
2020-05-05 18:17:50 -07:00
Thad House
cf20b068ca
[sim] Map HAL_GetSystemActive to HALSIM_GetDriverStationEnabled ( #2501 )
...
Vendors have requested this for testing purposes.
2020-05-01 09:05:54 -07:00
Thad House
0b9316d94a
[build] Revert workaround for azure windows library loading issue ( #2481 ) ( #2499 )
2020-05-01 08:56:18 -07:00
Tyler Veness
3011ebe547
[wpilibc] Fix uninitialized variable in Trajectory class ( #2495 )
...
Valgrind caught this one. If you default initialize a Trajectory, it
doesn't initialize m_totalTime. This means a subsequent call to
Trajectory::TotalTime() returns the value of an uninitialized variable.
3512's software was using 0_s as a sentinel value for when a trajectory
was empty. We didn't notice a problem before because Linux zero-inits
memory.
2020-04-26 08:03:17 -07:00
Starlight220
4b77b0773e
[wpilibj] SensorUtil: change exception type ( #2490 )
...
Use IllegalArgumentException instead of IndexOutOfBoundsException.
2020-04-23 21:27:48 -07:00
Prateek Machiraju
e5935a4737
[wpilibc] Fix const-qualification in kinematics and constraints ( #2478 )
2020-04-13 22:32:25 -07:00
Prateek Machiraju
a3a8472b82
[wpilib] Trajectory: Add MaxVelocity and Region constraints ( #2466 )
...
Co-Authored-By: Tyler Veness <calcmogul@gmail.com >
2020-04-12 10:39:43 -07:00
Peter Johnson
212182d991
[wpilibj] Remove getSimObject ( #2479 )
...
This approach to getting the simulation object doesn't work in C++ and
creates coupling that doesn't need to be present.
2020-04-12 10:37:27 -07:00
Thad House
c82b8546bc
[build] Work around azure windows library loading issue ( #2481 )
...
Temporary fix until actions/virtual-environments#707 is deployed.
2020-04-12 10:36:25 -07:00
Tyler Veness
fac4e3fcfc
[wpilibc] Add real-time priority constructor to Notifier ( #2303 )
...
Using this overload makes the thread backing the Notifier run at
real-time priority. This improves scheduling jitter substantially (5ms
+- 2ms down to 5ms +- 1ms).
A version isn't provided for Java because making threads real-time can
cause GC deadlocks.
2020-04-05 23:26:23 -07:00
Peter Johnson
5b0122fed4
[sim] Add NetworkTables view to Simulation GUI ( #2327 )
...
This enables seeing the tables locally, including update timestamps and
external connections.
2020-04-05 23:09:50 -07:00
Peter Johnson
b46b5df16a
[wpilibc] Output Tracer to DriverStation by default ( #2469 )
...
This matches the Java behavior.
Also optimizes Java to only create a StringBuffer and call
DriverStation.reportWarning if there is data to output.
2020-04-05 23:09:21 -07:00
Prateek Machiraju
cb51029335
[wpilib] Add Color.fromHSV() static helper ( #2461 )
...
Keep AddressableLEDBuffer.setHSV() implementation separate in Java
for performance reasons.
2020-04-05 23:08:52 -07:00
Austin Shalit
e504b3ecbd
[command] Add NetworkButton ( #2373 )
...
Closes #2371
2020-04-05 23:07:17 -07:00
Austin Shalit
0ad0ec0985
[wpilibj] Move button tests to button package ( #2472 )
...
Also make CommandTestBase public to facilitate this.
2020-04-05 23:05:53 -07:00
Austin Shalit
d1d32ada00
[build] Fix artifact publishing ( #2471 )
...
Add back variables block that was removed in #2457 .
2020-04-05 23:05:13 -07:00
Peter Johnson
8058daa982
[sim] Add encoder rate and distance to Simulation GUI ( #2470 )
2020-04-05 19:53:39 -07:00
Starlight220
f4c5c0f5b5
[command] Add withName inline decorator to Java ( #2420 )
...
This is an inline decorator for setting the name of a command
(equivalent to calling setName()).
It's not possible to implement this for C++, as it would slice the derived
class to return it by value.
2020-04-05 16:11:23 -07:00
Connell Torek
2ecb8dab7d
Add issue templates ( #2189 )
...
Co-authored-by: Connell Torek <51520860+ctorek@users.noreply.github.com >
2020-04-03 08:42:33 -07:00
Peter Johnson
576d427f03
[wpilib] SpeedControllerGroup: Add vector-taking constructor ( #2194 )
...
This allows the list to be constructed dynamically.
Co-authored-by: Thad House <thadhouse1@gmail.com >
2020-04-03 08:39:57 -07:00
Thad House
21aafea098
[hal] Use std::thread for Notifier thread on Rio ( #2152 )
...
This gives us more control over the thread than using the NI manager.
2020-04-03 08:38:00 -07:00
Thad House
3ed2908563
[sim] Add HALSIM accessors for encoder rate and distance ( #2467 )
2020-04-03 08:33:38 -07:00
Thad House
2b188b54d8
[ntcore] Always show StartLocal instances as connected ( #2462 )
...
This is useful for testing things that check IsConnected().
2020-04-02 17:58:07 -07:00
Austin Shalit
306720e63e
[build] Split build logic into separate files ( #2457 )
...
This allows us to share build logic between Azure hosted and WPI hosted hardware.
2020-04-01 21:33:04 -07:00
Prateek Machiraju
a308dd4471
[wpilib] Fix SplineHelper quintic spline generation bug ( #2429 )
2020-04-01 20:31:29 -07:00
Prateek Machiraju
8f33d21bc2
[wpilib] Add init methods to Preferences ( #2443 )
2020-04-01 20:26:49 -07:00
Prateek Machiraju
b9ee3ae030
[wpilibc] Refactor Tracer functionality out of Watchdog class ( #2456 )
2020-04-01 20:10:28 -07:00
Starlight220
c14b87b228
[wpilibj] Refactor Tracer functionality out of Watchdog class ( #2452 )
2020-04-01 20:09:40 -07:00
David Vo
8a279aaf20
[build] Check SHA-256 of downloaded Gradle distribution ( #2169 )
...
https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:verification
2020-03-31 20:44:12 -07:00
sciencewhiz
3a5e541b2d
[wpilibc] Add doxygen deprecated tag to deprecated methods ( #2336 )
2020-03-31 20:43:04 -07:00
Austin Shalit
43574128b3
Add a CODEOWNERS file ( #2431 )
2020-03-31 20:35:36 -07:00
sciencewhiz
e4a9903844
[build] Fix generateJavadoc dependencies ( #2458 )
...
This would previously not be correct on a clean repo (before a build was performed).
2020-03-30 16:50:58 -07:00
Armeen Mahdian
0d30108dcb
[wpiutil] Endian.h: minor cleanup and improvements ( #2454 )
...
- Make use of if constexpr when possible for byte_swap
- Remove unnecessary make_unsigned_t alias (added to STL in C++14)
2020-03-28 10:35:47 -07:00
Prateek Machiraju
b7a79c70cc
C++: Add Watchdog to CommandScheduler ( #2437 )
...
C++ counterpart to #2319
2020-03-28 09:29:51 -07:00
Daniel Z
6e6f28d1ac
Add watchdog and epoch reporting to CommandScheduler ( #2319 )
2020-03-28 09:29:15 -07:00
Starlight220
d14978e549
New commands: add docs to end() ( #2450 )
...
Added documentation to prevent looping end() by scheduling commands.
2020-03-28 09:18:06 -07:00
Prateek Machiraju
1c28b729ad
Move curvature_t to units namespace ( #2444 )
...
Note: this is a breaking change.
2020-03-22 22:57:52 -07:00
Thad House
303194b08b
Add missing CAN definition for IO Breakout ( #2394 )
...
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com >
2020-03-22 22:56:07 -07:00
Prateek Machiraju
2ee3bfaa25
Make SlewRateLimiter unit declarations public ( #2445 )
2020-03-22 22:55:10 -07:00
Peter Johnson
029a94dd33
Remove old simulation bits (ds_nt, lowfi, print) ( #2432 )
...
These are little used, not actively maintained, and the simulation GUI
and alternative plans for physics simulation replace the functionality.
2020-03-22 22:52:19 -07:00