Thad House
5987cfeaaf
Fix SPIs to not set CS DIO pins into DIO mode ( #504 )
...
HAL_GetPort both allocates the DIO and sets the DIO into DIO mode. The DIO setting was overriding the SPI setting on the port, so SPI chip selects were broken if you had more than one. Instead use CreatePortHandleForSPI, which is a special function that only allocates the DIO handle, but doesn't actually set the DIO into DIO mode.
2017-05-08 20:04:41 -07:00
Thad House
cd0ece4511
Removes the semaphore class ( #529 )
...
Its been deprecated, and its going to interfere with fixing #459
2017-05-08 19:42:28 -07:00
sciencewhiz
dc9f85ebb9
Fix comment refering to old _val enum values ( #524 )
2017-05-07 17:10:52 -07:00
sciencewhiz
35a2055cda
Improve documentation for WaitCommand and TimedCommand. ( #494 )
2017-05-07 13:29:11 -07:00
Austin Shalit
a1066776a5
Make SmartDashboard methods static ( #523 )
2017-05-07 10:32:40 -07:00
Austin Shalit
4dae747343
Refactor RobotDrive squaring ( #390 )
2017-05-07 09:40:48 -07:00
Thad House
d348a5b947
Fixes WaitForInterrupt to return values matching enum ( #503 )
2017-05-07 09:07:14 -07:00
Austin Shalit
f0c413f40d
Relay stores nt value in enum ( #460 )
2017-05-07 09:05:15 -07:00
Austin Shalit
846eee2f6c
HashMap -> LinkedHashMap ( #492 )
2017-05-06 23:38:10 -07:00
Austin Shalit
0b9ff68da1
StartLiveWindowMode ITables use lambdas ( #461 )
2017-05-06 23:26:18 -07:00
Austin Shalit
7187e005d4
Add Checkstyle WhitespaceAfter check ( #466 )
2017-05-06 23:22:16 -07:00
Chris Gregory
a5cd24e7ea
Reduce scope of for loop variables to for loop initializer ( #517 )
2017-05-06 23:15:34 -07:00
Jonathan Leitschuh
dbe821baee
Change the wrapper to use the all distribution with the sources ( #498 )
2017-05-06 21:34:15 -07:00
Peter Johnson
04486c6472
CameraServer: Always update addresses when updating stream values. ( #496 )
...
This should prevent (as currently happens) occassionally getting just the
mDNS address in the stream value.
2017-05-06 21:31:45 -07:00
Austin Shalit
2ee8ba9361
SafePWM: Rename Feed to feed ( #463 )
...
Add a deprecated shim to avoid breaking any user code using Feed.
2017-05-06 21:31:02 -07:00
Thad House
b07782cd89
Removes StatusIsFatal checks from PDP ( #493 )
...
The exceptions were removed from Java because these fail more often then
not. Teams are noticing this in C++ as well. In addition for some reason
ClearErrors() is causing about 0.5 seconds of lag. That's another issue,
but this will match Java and solve that issue for users.
2017-05-06 21:29:32 -07:00
Austin Shalit
305450b6e4
Remove 'value' from PIDSourceType ( #464 )
2017-05-06 21:27:07 -07:00
Thad House
fdd0b853ed
Fixes Base.h to work properly with MSVC 2015 and above ( #513 )
2017-05-06 21:23:33 -07:00
Max Narvaez
1d025204e7
Fixed Spelling Mistakes in SmartDashboard.java ( #506 )
...
Fixed comment spelling.
2017-04-30 00:29:27 -07:00
Tyler Veness
12f759860e
Corrects assumptions about return values from i2c-lib ( #484 )
...
Fixes #478
v2017.3.1
2017-02-17 00:05:54 -08:00
Austin Shalit
1bdbb5ddcc
Remove usages of isEnable() ( #483 )
2017-02-14 01:16:36 -08:00
Paul Friederichsen
b573fb6555
Fix param order in RobotDrive docs ( #481 )
...
Fix Javadoc @param order in RobotDrive and fix order of params in C++ docs
2017-02-14 01:14:56 -08:00
Thad House
b50a7bdbee
Fixes memory leak for SPI reads ( #474 )
...
Adds a stack allocation for most use cases.
2017-02-14 01:14:08 -08:00
Thad House
5a5f10dfc8
Fixes I2C read change size of pointer ( #479 )
...
Fixes #477
2017-02-10 15:21:59 -08:00
Peter Johnson
e375b4a9ff
CameraServer: auto-increment startAutomaticCapture(). ( #468 )
...
Also add GetServer() functions so the automatically created VideoSink can
be retrieved by user code if desired.
v2017.2.1
2017-01-20 01:07:37 -07:00
Thad House
ff141ab1ff
Fixes exception on camera creation without plugged in camera ( #470 )
...
Would throw if the camera was disconnected. We handle this properly at
the JNI level to not have this crash the entire program, but the error
is still kind of annoying, and not really an error.
2017-01-20 01:02:27 -07:00
Peter Johnson
b8537be219
CameraServer: Remove NT-driven settings. ( #467 )
...
Unfortunately, due to the way NT synchronization is currently performed,
this has unexpected and undesirable behavior: when a dashboard (or any other
NT client) is left running between code restarts, when it reconnects, any
code settings will be overwritten by the NT synchronization process. As
fixing this will require a fairly major NT change (and likely a user-visible
one), it's not desirable to do at this point in the year.
Instead, disable NT driven settings entirely (e.g. make the NT interface
publish only). To emphasize the read-only nature of the NT values, attempts
to change the NT values will be immediately overridden by CameraServer.
To better inform users about the actual property names (e.g. for use in their
code), the "raw_" settings no longer have "raw_" removed from their names
(they are still placed in the "RawProperty" subtable).
This change also contains a couple of Java fixes:
* Make getInstance() thread-safe
* Properly synchronize access to m_tables between multiple threads.
* Use Hashtable instead of HashMap.
2017-01-19 12:30:07 -07:00
Austin Shalit
8f1b034b2f
Fix typo in JavaDoc ( #462 )
2017-01-16 22:57:28 -07:00
Thad House
71d0a07e0a
Fixes solenoid allocation error message ( #455 )
...
The error was NO_AVAILABLE_RESOURCES, which is not the proper error to
return. Instead, just return the error directly from the allocation.
2017-01-14 23:59:05 -07:00
sciencewhiz
d322342494
Remove comments about Blue DS ( #450 )
...
It's unlikely that anyone is still using the Blue Kwikbyte DS from 2009,
and the reference is confusing to people who weren't around then.
2017-01-14 23:52:48 -07:00
Peter Johnson
bc7ab17692
CameraServer updates ( #446 )
...
* CameraServer: Add properties and video mode NT interchange.
* Automatically serve Axis cameras so they're accessible via USB.
v2017.1.1
2017-01-05 02:51:55 -08:00
Tyler Veness
7a049c29bd
Added a conditional command that chooses 1 of 2 commands ( #435 )
...
Tests and documentation for ConditionalCommand were also added. This is a fixed version of #9 , so it doesn't support lambdas.
Closes #9
2017-01-04 23:48:13 -08:00
Thad House
1fc375b31a
Updates the gradle wrapper to version 3.3 ( #445 )
2017-01-04 22:08:48 -08:00
Austin Shalit
eee7f3991c
Allow VisionRunner to stop ( #442 )
2017-01-04 19:41:07 -08:00
Thad House
2e3503517d
Add OS level serial port ( #426 )
2017-01-04 19:38:17 -08:00
Austin Shalit
15e58acc76
Java SendableChooser no longer sets a default on addObject ( #441 )
2017-01-03 19:13:45 -08:00
Austin Shalit
5aa5e3e09e
SendableChooser generic value ( #433 )
...
* Java SendableChooser now decorates with type (non-breaking change)
* C++ SendableChooser now is templated on the type instead of using void* and stores values (breaking change)
* C++ SendableChooser now uses llvm::StringMap instead of std::map
2017-01-03 14:40:31 -08:00
Tyler Veness
25ae7b2c2b
Upgraded Doxygen gradle plugin to 0.3 ( #440 )
2017-01-02 10:03:37 -08:00
Tyler Veness
4b6dc9583a
Corrected order of access specifiers in MockCommand class ( #436 )
2017-01-02 00:44:35 -08:00
Thad House
64eab1f7b3
Fixes missing Extern "C" from HAL Threads ( #437 )
...
Also fixes incorrect return value during set
2017-01-02 00:43:12 -08:00
Thad House
182f57216f
Adds project and classpath ignores ( #425 )
...
VsCode now supports Java, but it creates these files, and there is no
way to turn it off. Will be adding this to a few other repos too.
2017-01-01 00:08:13 -08:00
Tyler Veness
65b091a39a
Call SmartDashboard::init() in RobotBase constructor. ( #428 )
...
Fixes #427
2017-01-01 00:07:22 -08:00
Austin Shalit
ed1a94531a
Update license headers to 2017 ( #434 )
2017-01-01 00:05:57 -08:00
Fred Silberberg
4e12ffb0ae
Update the wpilib version plugin ( #423 )
v2017.1.1-rc-1
v2017.1.1-rc-2
2016-12-25 23:01:03 -08:00
Peter Johnson
4800c201e4
Add Axis camera creation functions and Http camera NT publishing. ( #420 )
2016-12-24 21:05:08 -06:00
Thad House
dc9a9e5d96
Fixes typo in SensorBase error message ( #422 )
2016-12-24 21:04:32 -06:00
Thad House
6844f05c3d
Adds SetAllSolenoids function to CTRE PCM code ( #419 )
...
Closes #417 .
2016-12-23 14:35:45 -06:00
Austin Shalit
8f67f2c24c
Remove unused code and add pmd check ( #395 )
2016-12-23 13:20:13 -06:00
Thad House
cc246bb9ac
Switches JNI to use new jni_util methods ( #404 )
...
* Uses WPIUtil string objects in JNI
* Switches JNI to use new jni_util classes
2016-12-23 13:13:17 -06:00
Sam Carlberg
bf9f0a9e6d
Add vision pipeline API to make it easier to run OpenCV pipelines ( #388 )
2016-12-23 10:48:56 -06:00