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
Peter Johnson
f3cd883c5c
Add Nidec Brushless motor. ( #705 )
2017-11-08 23:40:01 -08:00
Thad House
f34c736fb2
Adds warning prints to native library builds ( #710 )
...
Can be disabled with -PskipWarningPrints
2017-11-08 23:14:21 -08:00
Tyler Veness
1276489961
Removed uses of deprecated functions ( #709 )
2017-11-08 21:29:29 -08:00
Tyler Veness
8b2e656bde
Fixed Java velocity PID not calculating result when P = 0 ( #717 )
2017-11-08 21:28:09 -08:00
Thad House
6e9d1f55c6
Updates image to 2018 v10 image ( #713 )
2017-11-08 11:26:11 -08:00
Thad House
f4dce9e608
Fixes receive size in Java I2C ( #715 )
...
Allows underrun, which matches c++ behavior.
Fixes #711
2017-11-07 18:43:23 -08:00
Thad House
b9aabc71b0
Fixes publishing basenames for examples to make combiner script work. ( #712 )
2017-11-07 14:54:17 -08:00
Jaci R
0d54772362
Add IDEA plugin to root project ( #707 )
2017-11-05 19:57:53 -08:00
Tyler Veness
faf134a674
C++ examples no longer use deprecated APIs ( #703 )
2017-11-05 19:39:47 -08:00
Thad House
c24e755409
Fixes java example publishing and xml file ( #706 )
2017-11-04 10:09:41 -07:00
Thad House
bee9f1cb17
Adds header task to print out all headers ( #704 )
...
Will be used to create a generator for IDE's to get include paths.
2017-11-03 22:50:06 -07:00