Thad House
3bcb89fb84
Set rpath on all unix platforms to $ORIGIN ( #2299 )
...
* Set rpath on all unix platforms to $ORIGIN
Will make it possible to extract JNI libraries easier
2020-06-23 21:03:04 -07:00
Peter Johnson
62b8a36ce9
[sim] Wrap timing functions in C++ SimHooks ( #2540 )
...
These are present in Java but were missed for C++.
2020-06-20 23:47:55 -07:00
sciencewhiz
27566abb06
[command] PIDSubsystem: Add GetSetpoint ( #2534 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2020-06-20 16:30:21 -07:00
sciencewhiz
dfb130270a
[wpilib] Use inclusive language where practical ( #2533 )
...
Co-authored-by: Austin Shalit <austinshalit@gmail.com >
2020-06-19 23:06:34 -07:00
Thad House
1ba616f843
[build] Fix 32-bit Windows builds ( #2537 )
2020-06-18 21:29:48 -07:00
Peter Johnson
11fb0a4cb7
[cscore] EnumerateUsbCameras(): Only list capture devices ( #2532 )
...
Previously this would list ALL /dev/video* devices. In recent versions of
Linux this leads to listing duplicate devices, as many USB cameras provide
both a video device and a metadata device, and only the video device can
actually be used for streaming.
2020-06-13 20:51:46 -07:00
Peter Johnson
1557a4c3b0
[sim] Make SimDeviceInfo/SimValueInfo data members public ( #2531 )
2020-06-13 20:50:34 -07:00
sciencewhiz
ab28a7d65f
[build] Run Gradle Wrapper validation on PRs ( #2527 )
2020-06-11 18:28:11 -07:00
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