Peter Johnson
a20474bfc7
Update sensors to not use direct byte buffers.
2017-11-17 09:36:57 -08:00
Peter Johnson
479d0beb5a
SerialPort: Use byte[] instead of ByteBuffer in JNI.
2017-11-17 09:36:57 -08:00
Peter Johnson
b93aa176d6
AnalogInput: Remove byte buffer usage.
2017-11-17 09:36:57 -08:00
Peter Johnson
9021b37fd2
I2C: Provide byte[] JNI interfaces.
...
This avoids a direct byte buffer allocation on every read/write/transaction
on the byte[] variants.
Changes HAL I2C interfaces to use const for dataToSend.
2017-11-17 09:36:57 -08:00
Peter Johnson
6307d41002
SPI: Provide byte[] JNI interfaces.
...
This avoids a direct byte buffer allocation on every read/write/transaction
for the byte[] variants.
Also change spiGetAccumulatorOutput() to directly set the AccumulatorResult
object, avoiding a ByteBuffer allocation.
Changes HAL SPI interfaces to use const for dataToSend.
Fixes #733 .
2017-11-17 09:36:57 -08:00
Peter Johnson
e9b0b9d8f6
MjpegServer: Use sink name in title. ( #112 )
...
Fixes #83 .
2017-11-17 09:34:30 -08:00
Peter Johnson
cad1b9413c
Add exposure quirk for LifeCam Cinema. ( #111 )
...
This is the same quirk as the LifeCam HD-3000.
Fixes #110 .
2017-11-17 09:30:56 -08:00
Peter Johnson
3324bcc5ce
Use magic statics instead of ATOMIC_STATIC. ( #109 )
2017-11-17 09:29:20 -08:00
Peter Johnson
20c8d29ae9
Fix wpi::mutex usage in SetVideoMode().
2017-11-17 02:04:24 -08:00
Thad House
110726c5bf
Adds support to test library for JNI testing ( #54 )
2017-11-17 01:53:25 -08:00
Peter Johnson
df7c1389de
Remove ni-libraries libi2c and libspi.
2017-11-16 23:01:28 -08:00
Peter Johnson
6accc31ee7
HAL: implement I2C and SPI directly instead of using i2clib and spilib.
...
This reduces library dependencies, improves error handling, and makes
future enhancements easier.
2017-11-16 23:01:28 -08:00
Thad House
f56ec10bcf
Only return lower 32 bits of FPGA time ( #741 )
...
Works around an NI bug in image 10.
2017-11-16 20:52:50 -08:00
Tyler Veness
e5e6d6a193
Ran formatter based on styleguide#95 ( #737 )
2017-11-16 01:05:20 -08:00
Tyler Veness
c663d7cd16
Reflowed comments and removed commented out code ( #735 )
2017-11-16 00:33:51 -08:00
Tyler Veness
1e8d18b328
Upgrade Travis CI Python version to 3.5 ( #740 )
2017-11-16 00:19:16 -08:00
Peter Johnson
c2d95db3ab
Fix PreferencesTest. ( #739 )
2017-11-15 23:56:17 -08:00
Peter Johnson
7db60f8e7c
CvSource: Implement SetVideoMode(). ( #104 )
2017-11-14 22:09:30 -08:00
Tyler Veness
b3f1e74317
Ran formatter based on styleguide#95 ( #108 )
2017-11-14 22:07:56 -08:00
Thad House
dd7563376b
Force load OpenCV and cscore libraries on program initialization ( #716 )
...
Fixes bugs where Mat's are initialized before anything cscore was
called.
2017-11-14 22:04:53 -08:00
Tyler Veness
14fcf3f2f0
Simplified PIDController integration logic ( #645 )
...
A clamp() helper function was written based on C++17's std::clamp().
2017-11-13 22:28:55 -08:00
Peter Johnson
020ee227d2
Move ctre headers to hal/src so they aren't user-visible. ( #728 )
...
Also removes ctre_frames.h entirely since it's not used.
Fixes #683 .
2017-11-13 22:23:18 -08:00
Peter Johnson
4d559f3856
Use wpi::mutex instead of std::mutex. ( #730 )
...
This uses a priority-aware mutex on Linux platforms.
Fixes #729 .
2017-11-13 09:51:48 -08:00
Peter Johnson
e301adb22b
Use wpi::mutex instead of std::mutex. ( #105 )
...
This uses a priority-aware mutex on Linux platforms.
2017-11-13 09:51:26 -08:00
Peter Johnson
3438a17341
Use wpi::mutex instead of std::mutex. ( #254 )
...
This uses a priority-aware mutex on Linux platforms.
2017-11-13 09:51:05 -08:00
Peter Johnson
e4deda5ccb
Fix SafeThread bad merge. ( #53 )
2017-11-12 23:00:50 -08:00
Peter Johnson
80618a2e64
Use wpi mutex and condition_variable. ( #52 )
2017-11-12 22:12:03 -08:00
Peter Johnson
e45b6e0f65
Fix typo in priority_condition_variable. ( #51 )
2017-11-12 22:11:08 -08:00
Peter Johnson
86d4899a54
Make NetworkTable constructor private/package-private. ( #253 )
...
Users should be using either NetworkTableInstance.getTable() or
NetworkTable.getSubTable().
2017-11-12 21:57:28 -08:00
Peter Johnson
9d8a508cd5
Add priority_mutex and priority_condition_variable. ( #50 )
...
Also provide wpi::mutex and wpi::condition_variable as wrappers for these
on Linux (where they're available), and for std::mutex and
std::condition_variable on other platforms.
2017-11-12 20:56:29 -08:00
Peter Johnson
c9ead29f44
SafeThread: Simplify m_lock assignment. ( #49 )
...
Instead of construct-and-swap, just use the move operator=.
2017-11-12 20:10:55 -08:00
Thad House
35d68d2a34
Adds ability to simulate joysticks and event info ( #727 )
...
Thanks @pjreiniger for the initiali implementation and work on this.
2017-11-12 19:33:43 -08:00
Peter Johnson
7007725d9f
SerialHelper: Check error_code to prevent infinite loop. ( #725 )
2017-11-11 22:13:59 -08:00
Tyler Veness
0c83cad70c
Upgraded clang-format to 5.0 ( #431 )
2017-11-11 22:09:51 -08:00
sciencewhiz
0001047b8b
Add NidecBrushless to WPILib.h ( #724 )
2017-11-11 16:35:43 -08:00
Peter Johnson
f77fd1eca9
Set SO_EXCLUSIVEADDRUSE for server sockets on Windows. ( #44 )
...
On Windows, the shutdown() call relies on exclusively owning the server
socket.
2017-11-11 16:27:33 -08:00
Peter Johnson
5a5e753921
LLVM path: Don't follow symlinks. ( #48 )
...
This causes issues in recursive_directory_iterator.
2017-11-11 16:27:07 -08:00
Thad House
c885251367
Fixes HALSim_Print build to be the standardized pattern ( #721 )
...
Now publishes in zips, and with proper artifacts.
The code files just moved, and no changes.
2017-11-10 19:26:33 -08:00
Tyler Veness
42096fac3f
Ran formatter ( #722 )
2017-11-10 18:29:27 -08:00
sciencewhiz
6be9e69d13
Switch Command Templates to TimedRobot ( #719 )
2017-11-09 20:08:41 -08:00
Thad House
7bbd13d914
Adds match specific calls to Java and C++ ( #720 )
...
Uses caching, matching the joystick calls.
2017-11-09 19:59:29 -08:00
Thad House
3e4e5261fe
Remove no warnings on winsock and scl issues ( #47 )
...
Not needed anymore. The winsock one we removed and the scl one is
dangerous anyway.
2017-11-09 18:56:27 -08:00
Thad House
cf4afb6feb
Adds get header task ( #46 )
2017-11-09 18:55:27 -08:00
Thad House
55fa1e5e76
Adds header task ( #101 )
2017-11-09 18:43:21 -08:00
Thad House
2225c4fee2
Fixes warnings for casts in sim interrupt functions ( #718 )
2017-11-09 14:01:24 -08:00
Thad House
c101655419
Adds warning prints by updating native plugin ( #100 )
2017-11-09 11:24:22 -08:00
Thad House
51165ba0aa
Updates native plugin to add warning prints ( #251 )
2017-11-09 11:23:52 -08:00
Thad House
f03b31f433
Adds warning printouts to gradle by updating native plugin ( #45 )
2017-11-09 09:25:22 -08:00
Tyler Veness
7efab4c43a
Replaced ternary operators with if statements ( #346 )
...
Instances of the ternary operator were replaced with if statements to make the code base more consistent.
2017-11-08 23:44:03 -08:00
Thad House
c8e44256ef
Uses NI provided function for SetOccurDataRef rather then importing the symbol ourselves. ( #714 )
2017-11-08 23:41:16 -08:00