Tyler Veness
4a07f0380f
PIDController class now uses LinearDigitalFilter for filtering velocity instead of internal queue ( #38 )
2017-11-19 15:58:30 -08:00
Tyler Veness
cf828ca858
Upgraded clang-format to 5.0 ( #103 )
2017-11-19 15:15:41 -08:00
Peter Johnson
7847c69231
Update for wpi::Now() change to microseconds. ( #113 )
...
Also be explicit in docs about what timebase and step are used.
2017-11-19 14:35:50 -08:00
Peter Johnson
7f46b50b21
Unify WPI_Now and HAL_GetFPGATime. ( #743 )
...
Depends on wpilibsuite/wpiutil#56 .
2017-11-19 12:33:36 -08:00
Peter Johnson
0e4a1c5dae
NetworkTable: Add key utility functions. ( #256 )
...
- BasenameKey
- NormalizeKey
- GetHierarchy
2017-11-19 11:52:10 -08:00
Peter Johnson
551504e773
Update documentation for Now() for 1 us steps. ( #258 )
...
This is to match wpilibsuite/wpiutil#56 .
2017-11-19 11:47:37 -08:00
Peter Johnson
85e83f1bba
WPI_Now(): return microseconds, and make backend replaceable. ( #56 )
...
- Add function documentation.
- Use uint64_t instead of unsigned long long
2017-11-19 11:47:06 -08:00
Peter Johnson
7eac3fcbda
Java NetworkTableEntry.setValue() and kin: Handle common Java types. ( #257 )
...
This restores the behavior of the old NetworkTable.putValue() function.
2017-11-19 11:44:54 -08:00
PJ Reiniger
303c259b89
Simulate ADX* family of accelerometers and gyros ( #688 )
2017-11-18 12:31:51 -08:00
Thad House
cd1dbb1e3a
Adds a const buffer listener ( #742 )
...
Replaces need for const_cast in SPI and I2C functions
v2018.1.1-beta-3
2017-11-17 10:01:49 -08:00
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