Peter Johnson
60c2f59051
C++ CameraServer: initialize default Usb camera device number ( #1601 )
...
Otherwise just plain StartAutomaticCapture() starts with random number.
v2019.3.1
v2019.3.2
2019-02-14 22:39:40 -08:00
Peter Johnson
d55ca191b8
CameraServer: Add switched camera support ( #1600 )
...
This adds a new function "addSwitchedCamera" that creates and publishes a
virtual camera where the published stream information is consistent even if
the mjpeg server source is switched to a different camera.
Previously, changing the source of the mjpeg server resulted in updating the
stream information published for that source.
2019-02-14 22:05:40 -08:00
Sam Carlberg
e8b24717c7
C++ Shuffleboard fixes ( #1595 )
...
* Fix C++ ShuffleboardComponent template type
* Fix `WithWidget(WidgetType&)`not being properly capitalized
* Fix data members across dll boundaries by using enum for built in types
2019-02-14 20:44:30 -08:00
Tyler Veness
182758c05b
Fix Ultrasonic sensor runner thread ( #1598 )
...
When there is more than one ultrasonic sensor, only the last sensor
instantiated would work due to incorrect array index management. This
replaces the previous approach with range-based for loops like the C++
implementation.
Supersedes #1589 .
2019-02-14 20:25:56 -08:00
Peter Johnson
74f7ba04b0
Java PIDBase: Make setPIDSourceType and getPIDSourceType public ( #1599 )
...
Fixes #1596 .
2019-02-13 23:41:05 -08:00
Thad House
997d4fdf47
Update HAL GetStackTrace to properly report user errors ( #1594 )
...
With the move of the HAL, the old value no longer worked, as the JNI call is in a different namespace
2019-02-11 20:17:31 -08:00
Thad House
76d9e26633
uv: Add reuse to pipe ( #1577 )
...
Needed for a reconnection API
2019-02-09 00:09:22 -08:00
Thad House
a230c814cb
Add support for WPILib vscode extension for allwpilib C++ intellisense ( #1590 )
2019-02-09 00:07:48 -08:00
Thad House
12cb77cd7c
Fix DS Comm button tests ( #1591 )
...
Mac requires the double braces
2019-02-09 00:07:24 -08:00
Thad House
8a9822a96b
Allow multiple instances of the same PDP ( #1582 )
...
Previously multiple instances would overrun with each other. This make all instances get the same HAL handle.
2019-02-06 22:51:34 -08:00
Thad House
a9371a7586
Fix missing exposure property on windows USB cameras ( #1571 )
2019-02-06 22:49:55 -08:00
Peter Johnson
6992f5421f
cscore: Avoid crash if invalid (null) source set in MjpegServer ( #1585 )
...
Fixes robotpy/robotpy-cscore#60
2019-02-03 00:22:07 -08:00
Tyler Veness
43696956d2
Fix Watchdog incorrectly resetting expiration flag upon disable ( #1580 )
...
Resetting the flag should only occur in Enable() and Reset().
IterativeRobotBase needs the flag to remain set to print epochs after
disabling the Watchdog.
2019-02-02 00:22:07 -08:00
Thad House
ae3fd5adac
Fix docs search having unspecified module directory ( #1568 )
...
Also add Doxygen comment for C++ filesystem API.
2019-02-02 00:20:57 -08:00
Jaci Brunning
404666b298
Fix Halsim DS Button Format ( #1583 )
2019-02-01 23:23:04 -08:00
sciencewhiz
1eb4c99d15
Update README for 2019 changes ( #1569 )
...
Fixes #1562
2019-02-01 23:05:41 -08:00
Thad House
910b9f3af7
Add support for camera descriptions on windows ( #1572 )
...
For now, has to force enumerate all cameras to find the matching one
2019-02-01 23:04:12 -08:00
Thad House
09d90b02fb
Remove prints and unecessary items from windows GetNetworkInterfaces ( #1573 )
2019-02-01 23:02:12 -08:00
Peter Johnson
0e1f9c2ed2
ntcore: Read ini escaped quotes correctly ( #1579 )
2019-02-01 23:01:00 -08:00
Thad House
f156a00117
wpiutil uv: Pass IPC value of listening pipe to accepted pipe ( #1576 )
...
Otherwise, the acception fails.
2019-01-30 20:37:28 -08:00
Thad House
4a6087ed56
Disable watchdog test on mac ( #1578 )
...
It can't be held property on the asure test system
2019-01-30 20:35:16 -08:00
Peter Johnson
88a09dd13a
cscore: Handle USB camera integer menus ( #1561 )
...
The Pi Camera is one of these. Previously, integers were just being
cast to a string instead of formatted as a string.
2019-01-24 22:46:29 -08:00
Christopher Cantrell
7d19596367
Changed terminology from "Overload" to "Override" ( #1563 )
2019-01-24 22:45:05 -08:00
Jaci Brunning
bd05dfa1c7
Fix ds_socket matchinfo ( #1555 )
2019-01-16 21:32:34 -08:00
Peter Johnson
05d6660a6b
cscore: Add config json to VideoSink ( #1543 )
...
Same format as VideoSource.
Refactor properties json handling into PropertyContainer.
2019-01-11 20:33:05 -08:00
Peter Johnson
1349dd4bd8
Make MjpegServer functions public ( #1545 )
2019-01-11 17:53:44 -08:00
Peter Johnson
fdf298b172
CameraServer: Return MjpegServer from StartAutomaticCapture(VideoSource) ( #1544 )
2019-01-11 16:44:49 -08:00
Peter Johnson
453a9047e4
Fix cmake hal sim build ( #1539 )
...
A source directory was named incorrectly in CamelCase.
2019-01-11 02:38:35 -08:00
Peter Johnson
e97e7a7611
Add DriverStationSim.notifyNewData ( #1537 )
v2019.2.1
2019-01-09 23:47:42 -08:00
Thad House
308bdbe298
cscore: Windows UsbCamera: Use custom windows message for initial connection ( #1534 )
...
WM_CREATE is being called at a time where the message pump cannot be called back into.
2019-01-09 22:52:24 -08:00
Peter Johnson
f889b45d59
cscore: MjpegServer: Fix FPS limiting ( #1536 )
...
This uses a 1-second window average to try to hit the desired FPS.
2019-01-09 22:50:34 -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
Peter Johnson
bc2c932f92
Fix MotorSafety deadlock ( #1526 )
...
Some instances of StopMotor (most notably DifferentialDrive) call Feed(),
which deadlocks due to Check() holding the same lock.
Fixes #1525 .
v2019.1.1
2019-01-02 20:58:39 -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
Thad House
c12d7729e3
Update examples to use VictorSPX's rather then Sparks ( #1521 )
2018-12-31 13:45:09 -08:00
Dustin Spicuzza
3635116049
cscore: set charset of displayed pages ( #1520 )
...
All of our strings are UTF-8, but the default charset for HTML<5 was ISO-8859-1
2018-12-30 23:49:24 -08:00
Peter Johnson
6105873cbe
Provide alternate device paths info for USB cameras ( #1519 )
...
This is primarily for use on Linux to get by-id or by-path device names.
This information is now part of UsbCameraInfo.
A new entry point was added to UsbCamera to get that camera's UsbCameraInfo.
The alternate paths are also returned in EnumerateUsbCameras.
2018-12-30 11:48:18 -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
Peter Johnson
75cc09a9e4
Revert "Suppress timeout message in C++ MotorSafety class ( #1512 )"
...
This reverts commit 300eeb330d .
2018-12-30 00:16:50 -08:00
Peter Johnson
0e2e180635
PowerDistributionPanelTest.cpp: Include thread
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
Peter Johnson
ceed1d74dc
ntcore: Strip whitespace from IP addresses ( #1516 )
2018-12-29 14:47:25 -08:00
Peter Johnson
e1bf623997
cscore: handle HTTP stream hangs ( #1513 )
...
Automatically disconnect the HTTP stream if no frames have been received
for 1 second.
2018-12-29 14:08:45 -08:00
Thad House
d46ce13ffe
Fix CAN API timing out incorrectly ( #1497 )
...
HAL_GetFPGATime returns 0 if it starts with a non zero status.
Always use monotonic clock for CAN times, rather then trying to sync FPGA.
Change timeout from 50 ms to 100 ms.
2018-12-29 13:57:23 -08:00
Tyler Veness
300eeb330d
Suppress timeout message in C++ MotorSafety class ( #1512 )
...
wpilibj's default constructor is already correct.
2018-12-27 14:01:02 -06:00