Christopher Cantrell
7d19596367
Changed terminology from "Overload" to "Override" ( #1563 )
2019-01-24 22:45:05 -08:00
Peter Johnson
444b899a9f
Java: Fix Timer.get() handling of accumulated time ( #1531 )
...
Fixes #1530 .
2019-01-08 19:43:49 -08:00
Tyler Veness
f121ccff0d
Avoid Watchdog thread clobbering m_isExpired flag after callback ( #1527 )
2019-01-08 19:37:59 -08:00
Thad House
6bdd7ce506
Update docs for disabled init to match all the other modes ( #1523 )
...
Closes #1522
2018-12-31 19:11:35 -08:00
Sam Carlberg
80f87ff8ad
Allow video sources to be added to Shuffleboard ( #1453 )
...
Add a Sendable wrapper for VideoSource objects.
Add convenience methods for adding video sources directly to containers
so users won't have to manually wrap video sources.
2018-12-30 11:45:41 -08:00
Peter Johnson
a2368a6199
Watchdog: add timeout message suppression feature
...
Was part of reverted #1486
2018-12-30 00:16:50 -08:00
Peter Johnson
ae3cb6c83b
Watchdog.java: add comment fixes from reverted #1442
2018-12-30 00:16:50 -08:00
Peter Johnson
f0f196e5b3
Revert "MotorSafety: Use Watchdog instead of DS class polling ( #1442 )"
...
This reverts commit 26e8e587f9 .
2018-12-30 00:16:50 -08:00
Peter Johnson
7c35355d29
Revert "Suppress Watchdog's generic timeout message in MotorSafety ( #1486 )"
...
This reverts commit 41596608cc .
2018-12-30 00:16:50 -08:00
Sam Carlberg
01d1322066
Add constants for built-in Shuffleboard widgets and layouts ( #1468 )
...
Prevents users from having to remember (and correctly type) the names of Shuffleboard widgets.
2018-12-29 17:22:47 -08:00
Andrew Dassonville
d817001259
Only write version information on real robot ( #1510 )
...
Writing to the versions file throws an exception on Windows, and might
write weird files on Linux.
2018-12-27 00:59:49 -06:00
David Vo
8d95c38e39
Watchdog: Fix potential IllegalFormatException ( #1508 )
...
If an epoch name contains a % symbol, this could've lead to an exception
at runtime where the number of arguments mismatches the format string.
2018-12-25 01:12:44 -06:00
Thad House
c449ef1064
Unconditionally await in awaitUntil ( #1499 )
...
Negative numbers are properly handled, which will reduce chances of deadlocks.
2018-12-24 15:07:47 -06:00
Thad House
0d7d880261
Renable full Java 8 Compatibility ( #1493 )
2018-12-21 00:25:23 -08:00
Tyler Veness
41596608cc
Suppress Watchdog's generic timeout message in MotorSafety ( #1486 )
2018-12-14 10:53:33 -08:00
Peter Johnson
ab49345460
Add missing param javadoc comment and fix argument order inconsistency ( #1475 )
2018-12-09 08:37:09 -08:00
Tyler Veness
6d4326a560
Rate-limit Watchdog timeout prints to 1Hz ( #1459 )
2018-12-07 19:39:02 -08:00
Sam Carlberg
97ba195b88
Fix LiveWindow attempting to start listeners on uninitialized sendables ( #1463 )
...
Additionally adds a defensive check in SendableBuilderImpl to avoid the NPE.
2018-12-07 19:38:22 -08:00
Dustin Spicuzza
b64dfacff3
DriverStation: fix error checking for GetXXXAxis and GetXXXPov ( #1469 )
...
Fixes #1436
2018-12-06 22:31:14 -08:00
Peter Johnson
dcbf02a1ec
Update auto SPI for timestamp changes ( #1457 )
...
The 2019 FPGA image switched the output of auto SPI from plain bytes to a
sequence of 32-bit words (timestamp, then words with the byte values in the
least significant byte of each word).
In addition to changing the HAL and simulators to reflect this, add piecewise
integration support to wpilibc/wpilibj SPI to take advantage of the timestamps
and use it in the ADXRS450 gyro.
2018-12-06 22:29:20 -08:00
Tyler Veness
26e8e587f9
MotorSafety: Use Watchdog instead of DS class polling ( #1442 )
2018-12-01 01:34:52 -08:00
Tyler Veness
3b33abfc7b
Make Watchdog use single thread dispatch ( #1347 )
...
Notifier has one thread per instance because the callbacks must be
asynchronous. Watchdog callbacks can be synchronous, so this overhead
can be done away with via a scheduler thread akin to what the HAL
Notifier does.
2018-12-01 00:05:33 -08:00
Sam Carlberg
6f0c185a05
Add methods to change the selected tab in the Shuffleboard app ( #1448 )
2018-11-27 22:12:50 -08:00
Sam Carlberg
a60f312d19
Add eager null checks in drive base classes ( #1447 )
...
All null motors will be specified in the error messages.
2018-11-27 18:11:56 -08:00
Tyler Veness
acb786a791
Remove MotorSafetyHelper, create MotorSafety base class instead ( #562 )
...
Most of the MotorSafety implementation was moved into the MotorSafety base
class. SafePWM's inheritance of MotorSafety was moved into PWM to
eliminate Java needing a helper class.
In Java, a helper class for Sendable (SendableImpl) was added due to
lack of multiple inheritance.
2018-11-22 21:15:26 -08:00
Sam Carlberg
45f4472d42
Add mechanism to control Shuffleboard recordings and add event markers ( #1414 )
2018-11-18 23:15:30 -08:00
Austin Schuh
9207d788ab
Convert ReadInterrupt* to return int64_t time ( #1417 )
...
HAL_ReadInterruptRisingTimestamp and HAL_ReadInterruptFallingTimestamp
return time as a double. Instead, keep the raw integer count and move the
double conversion into the C++ and Java code. This enables comparison of the
time with other timers.
2018-11-15 21:22:03 -08:00
Tyler Veness
63775362fe
Remove SynchronousPID class ( #1429 )
...
PR #1300 supersedes it, but won't be merged until the 2020 season. Since
SynchronousPID hasn't been used during a season, it would be best to
just remove it to avoid breakage when we deprecate and remove it again.
2018-11-15 19:25:31 -08:00
Jaci Brunning
28087424ec
Add deploy directory detection ( #1400 )
...
Add Filesystem class for java and namespace methods for C++ for detecting deploy location.
2018-11-02 13:16:44 -07:00
Nicolas Machado
761933a164
Refactor Java Ultrasonic to use a List container ( #1389 )
2018-10-29 01:15:32 -07:00
Redrield
9f6544fa87
Allow binding commands to POV ( #1378 )
2018-10-28 21:54:06 -07:00
Tyler Veness
0a2ab4f0d7
Revert change in behavior in HeldButtonScheduler ( #1381 )
...
Originally, the command was restarted every time the scheduler was
executed if the button was pressed. #1340 changed this behavior in a
breaking manner.
2018-10-20 21:25:37 -07:00
Thad House
11e5faf469
Use Array Constructor rather then new array to toArray ( #1368 )
...
A bit cleaner to use, and more standard for the current java. Still java 8 compatible.
2018-10-16 01:30:42 -07:00
Liam Kinne
da9a575526
Rename squaredInputs to squareInputs in DifferentialDrive ( #1361 )
...
Fixes #1360 .
2018-10-13 23:10:16 -07:00
Tyler Veness
81498e6af9
Deprecate IterativeRobot in favor of TimedRobot ( #1341 )
...
Since https://github.com/wpilibsuite/allwpilib/issues/786 has been
closed as not a legitimate concern, there is now no reason to use
IterativeRobot over TimedRobot. It's a drop-in replacement that's
strictly an improvement in terms of execution jitter.
To migrate, one simply has to replace the IterativeRobot subclass in
their robot code with TimedRobot.
2018-10-04 01:02:07 -07:00
ariovistus
54fbec27df
Fix typo ( #1348 )
2018-10-04 00:59:47 -07:00
Sam Carlberg
175c6c1f01
Add fluent builders for more flexibly adding data to Shuffleboard ( #1022 )
2018-09-28 01:18:18 -07:00
Tyler Veness
a732854866
Clean up edge detection logic in ButtonScheduler subclasses ( #1340 )
...
This also changes the behavior of whileActive to call start once on the starting edge
instead of every loop iteration.
2018-09-26 22:55:34 -07:00
Tyler Veness
6171856020
Document Watchdog epochs better ( #1345 )
2018-09-26 22:53:34 -07:00
Thad House
0c58a0a705
Repackage CameraServer classes ( #1321 )
...
This is necessary for modularization.
Move the wpilibj CameraServer classes to the cameraserver package.
Move the edu.wpi.first.wpilibj.vision package to edu.wpi.first.vision.
To avoid code breakage, add deprecated copies of the wpilibj classes to the wpilibj jar.
2018-09-23 21:20:12 -07:00
Tyler Veness
b505bbefd1
Rename variable in SPI class not compliant with style guide ( #1330 )
...
Also rename some wpilibj SPI class variables to match wpilibc and
better communicate their intent.
2018-09-23 18:26:02 -07:00
Thad House
1137582a7a
Revert "Move deprecated ntcore classes to wpilibj jar ( #1322 )" ( #1326 )
...
This reverts commit 12c92a822d .
2018-09-21 11:32:11 -07:00
Thad House
e210073044
Move HAL classes to their own base package ( #1317 )
...
Needed for modularization.
2018-09-20 21:59:46 -07:00
Thad House
12c92a822d
Move deprecated ntcore classes to wpilibj jar ( #1322 )
...
Will allow for modularization
2018-09-20 21:50:30 -07:00
Thad House
59386635e7
Add CAN API constructor that takes explicit manufacturer and device type ( #1311 )
...
Useful for vendors wanting to use the API and make their own device parameters
2018-09-19 21:40:47 -07:00
Matt Soucy
8b5dc53cc7
Add Lambda support to InstantCommand ( #1262 )
2018-09-11 23:44:22 -07:00
Kay Kasemir
59700882f1
PIDController: Mention unit for 'period' ( #1305 )
2018-09-11 21:38:19 -07:00
Peter Johnson
67b1c85315
Notifier: properly reset HAL alarm in non-periodic case ( #1296 )
...
The loop spins otherwise.
2018-09-03 16:07:23 -07:00
Tyler Veness
0b113ad9ce
Fix some PIDCommand constructors not forwarding subsystems ( #1299 )
...
Also added missing constructor to wpilibc's InstantCommand and renamed
argument from requirement to subsystem as per
https://github.com/wpilibsuite/allwpilib/pull/1275#issuecomment-416071940 .
2018-09-02 14:18:12 -07:00
Matt Soucy
e28295fc7b
Add dependency injection of Subsystem to Command ( #1275 )
2018-08-19 19:43:21 -07:00