Thad House
32ec07ee01
Throw correct exception in HAL_getJoystickAxes/POVs JNI ( #1336 )
...
Was incorrectly not returning immediately after throwing the exception.
Also add more detail to exception.
2018-09-24 22:17:17 -07:00
Thad House
15c5a820bf
Publish tests to azure ci ( #1334 )
...
Makes reviews easier.
2018-09-24 16:36:50 -07:00
Thad House
e15fabd2e1
Add cmake azure build ( #1332 )
2018-09-24 16:36:24 -07:00
Tyler Veness
1aa8446725
Add move constructors and assignment operators to wpilibc ( #1314 )
...
Fixes #898 .
2018-09-24 00:08:25 -07:00
Thad House
b1965f74a8
Add styleguide check to azure pipelines build ( #1331 )
2018-09-23 23:38:04 -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
467c9fd686
Add kInvalid value to HAL_I2CPort and HAL_SPIPort ( #1329 )
...
This allows HAL_CloseI2C() and HAL_CloseSPI() to be noops, which makes
enabling move semantics in the I2C and SPI wpilibc classes easier and
cleaner.
Fixes #1328 .
2018-09-23 21:14:04 -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
5c6b78ea2b
Set up CI with Azure Pipelines ( #1306 )
2018-09-23 17:43:23 -07:00
Thad House
f89274fb13
Fix hal header zip task dependencies ( #1327 )
...
Sometimes wouldn't include generated header file
2018-09-21 12:04:11 -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
e26e3b6aa8
Fix HAL Headers Zip ( #1325 )
...
Was generating file into wrong directory
2018-09-21 10:51:17 -07:00
Thad House
456d3e16a6
Update NI Libraries to layout without C++ ( #1324 )
...
An explicit classifier is not required because we now generate usage reporting
2018-09-21 10:36:40 -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
0068b6aea3
Remove wpilibj tests from wpilibjIntegrationTests ( #1323 )
...
Since the integration tests are still on junit 4, the wpilibj junit 5 tests fail.
2018-09-20 21:57:59 -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
d2a5aaafdd
Use external dependencies for NI and NetComm libraries ( #1304 )
...
This removes a number of large binary files from the repo and enables vendors
to depend on these libraries separately.
2018-09-19 21:57:58 -07:00
Tyler Veness
bedef476fd
Replace IterativeRobot in examples with TimedRobot ( #1310 )
...
Fixes #1309 .
2018-09-19 21:41:08 -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
Thad House
a846ed062f
Add virtual destructor to CameraServerShared ( #1313 )
...
Fixes mac builds after update
2018-09-19 21:39:57 -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
025af24523
Make NetworkTableEntry.callRpc and createRpc public ( #1303 )
2018-09-08 21:19:14 -07:00
Peter Johnson
c0ff6198b3
Change hal sim to use spinlocks ( #1291 )
...
This makes callback registration completely thread safe.
This patch also uses templates and macros to dramatically reduce the amount of
manual boilerplate.
2018-09-03 16:08:07 -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
Peter Johnson
c8482cd6d2
wpiutil: Add WebSocket implementation ( #1186 )
...
This is a RFC 6455 compliant implementation with both client and server support.
2018-08-24 20:54:23 -07:00
Peter Johnson
d6d5321828
wpiutil UidVector: Implement clear() and forward iterator ( #1293 )
...
The forward iterator only iterates over "live" elements.
Also add a couple of unit tests for UidVector.
2018-08-24 20:39:57 -07:00
Peter Johnson
8d91343bf5
wpiutil spinlock.h: Include STL mutex for convenience ( #1292 )
...
The STL mutex header defines classes like lock_guard and unique_lock.
2018-08-24 20:39:20 -07:00
PJ Reiniger
488ba79379
Add more checkstyle checks to simulator code ( #1289 )
2018-08-23 23:15:29 -07:00
PJ Reiniger
de212a9dd0
Add names to simulator components ( #1268 )
...
Makes configuration easier when you can associate the items with a name
instead of just a port number. Important if there is a GUI added at some
point.
2018-08-23 17:59:09 -07:00
Peter Johnson
8d8f120cc3
EventLoopRunner: Use AsyncFunction
2018-08-20 22:21:53 -07:00
Peter Johnson
57490e0002
Add uv::AsyncFunction to do a roundtrip function call to a uv::Async
...
This optionally blocks to wait for a return value.
2018-08-20 22:21:53 -07:00
Peter Johnson
1de1900dbb
Change uv::Async to accept data parameters
...
This is a breaking change as it makes Async a template (e.g. Async<> must
be used instead of just Async). When data parameters are provided, an
internal mutex and vector is used to hold the parameter packs until the loop
runs.
2018-08-20 22:21:53 -07:00
Peter Johnson
4a3e43d4a7
Add HttpMultipartScanner ( #1197 )
...
This is a non-blocking version of FindMultipartBoundary.
2018-08-20 22:00:54 -07:00
Peter Johnson
9e37ee13de
Add wpi::HttpServerConnection and an example of its use ( #1281 )
2018-08-20 13:11:39 -07:00
Peter Johnson
7b95c5341a
ntcore: Change params in Java RpcAnswer from String to byte[] ( #1280 )
...
The underlying protocol uses raw bytes, so they should not be required to be
a valid string.
2018-08-20 13:07:13 -07:00
Peter Johnson
5283726cce
ntcore: Describe RPC version 0 in spec ( #1279 )
2018-08-20 13:06:43 -07:00
Peter Johnson
0b8f4b5e6c
Add libdl to wpiutil cmake build ( #1288 )
...
This is required for dlopen, which is required by libuv.
2018-08-20 00:56:16 -07:00
Peter Johnson
a5f7342fce
Run cmake build in travis ( #1287 )
2018-08-20 00:55:54 -07:00
Peter Johnson
6df7425440
cmake: Compile cscore and wpiutil examples ( #1286 )
2018-08-19 23:22:52 -07:00
Peter Johnson
d7b68f3f95
Unbreak cmake build ( #1285 )
2018-08-19 23:21:51 -07:00
Matt Soucy
e28295fc7b
Add dependency injection of Subsystem to Command ( #1275 )
2018-08-19 19:43:21 -07:00
Peter Johnson
6df500e726
Add missing library dependencies in simulation dev executables ( #1284 )
2018-08-19 19:12:43 -07:00
Peter Johnson
83cfb8b19f
UrlParser: fix Has() functions ( #1283 )
2018-08-19 17:25:42 -07:00
Peter Johnson
82b25d0ec9
spinlock_bench.cpp: Fix wpiformat warning ( #1282 )
2018-08-19 17:25:20 -07:00
Peter Johnson
b44f27ddfa
SendableChooser: Rename addDefault and addObject for clarity ( #1239 )
...
Rename addDefault to setDefaultOption and addObject to addOption.
The old names are still available but are marked as deprecated.
2018-08-19 01:51:17 -07:00
Peter Johnson
fa78f30e30
ntcore: Make protocol revision more visible in docs ( #1278 )
...
Also add author line to correct document formatting.
2018-08-19 01:38:23 -07:00
Peter Johnson
46ae19d082
wpiutil: Add a mutex-compatible spinlock implementation ( #1272 )
...
Note this is only faster than mutex if compiler optimization is enabled.
2018-08-19 01:01:10 -07:00
Peter Johnson
77124a229e
Twine: disable part of isValid() that causes spurious warnings ( #1271 )
2018-08-16 19:35:40 -07:00