Thad House
2da26c0579
Make HAL_Initialize timeout configurable, makes result a bool, and makes Java an exception rather than assert. ( #557 )
2017-07-01 00:43:06 -07:00
Tyler Veness
9d93820717
Replaced STL streams with LLVM's raw_ostream ( #344 )
...
std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
2017-06-30 19:33:43 -07:00
Thad House
c57a7f0a41
Switches all notifiers created with the external API to be threaded ( #546 )
...
Testing showed this wasn't an issue with timing, and allows for more
safety in user code making mistakes. Places where the extra thread
wouldn't help have been kept non threaded, using a new internal API.
2017-06-30 18:58:58 -07:00
Thad House
e824b1129e
Adds way to reset and version all HAL handles ( #545 )
...
Useful in the sim to force a full reset. On roboRIO, the information is
still created and added, but is not checked because of speed
considerations.
2017-06-30 16:28:28 -07:00
Thad House
462b231dac
Adds function to HAL to free malloc'd joystick name ( #543 )
...
No safe way to do this with interop, so a function is needed.
2017-06-30 16:11:16 -07:00
Thad House
d472af3517
Removes CAN.h from the HAL ( #556 )
...
I can't find where the actual code is implemented, and I get errors if I
try to link or compile to any of its functions. Even CANJaguar doesn't
use them, nor did the old impl of CANTalon. Plus looking at the API it
makes no sense anyway, since it doesn't do any buffers , so I think its
worth it to remove it.
Removes CAN.h from the JNI header
2017-06-30 15:13:51 -07:00
Tyler Veness
b433d98c02
Replace std::stringstream with llvm::raw_svector_ostream ( #345 )
...
A few locations were changed to use std::ostringstream.
2017-05-15 23:10:40 -07:00
Thad House
7006672b06
Fixes hal shim from alias to using item ( #538 )
...
Fixes #536
2017-05-12 17:02:54 -07:00
Thad House
efec0c5cc3
Moves the HAL priority_ custom types to the hal namespace ( #532 )
...
There is a shim for backwards compatibility, just like the frc namespace.
As with the frc namespace, the library compiles without the shim.
2017-05-11 21:25:22 -07:00
Thad House
68b62abb52
Adds chrono wrapper around fpga time ( #527 )
...
Useful for some of the scenarios in C++ where using the chrono wrappers
might be very helpful.
2017-05-09 20:29:29 -07:00
Thad House
b2f3479692
Switches SPI and I2C to use enums in the HAL for ports ( #531 )
...
Closes #397
2017-05-09 12:12:46 -07:00
Thad House
fc81298fac
Switches DS to use Occur callback rather than internal netcomm semaphore ( #510 )
...
Allows us to control multithreaded access and spurious wakeups easier.
closes #509
Switches DS to use new waitForData functionality
Adds a few new functions
2017-05-08 20:21:47 -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
Chris Gregory
a5cd24e7ea
Reduce scope of for loop variables to for loop initializer ( #517 )
2017-05-06 23:15:34 -07:00
Thad House
2e3503517d
Add OS level serial port ( #426 )
2017-01-04 19:38:17 -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
Austin Shalit
ed1a94531a
Update license headers to 2017 ( #434 )
2017-01-01 00:05:57 -08:00
Thad House
6844f05c3d
Adds SetAllSolenoids function to CTRE PCM code ( #419 )
...
Closes #417 .
2016-12-23 14:35:45 -06:00
Thad House
841f016017
Fixes SerialHelper when used with OS serial ports. ( #411 )
...
Also makes the SerialHelper API public so it can be used externally.
2016-12-21 00:16:05 -06:00
Tyler Veness
31ae7c942c
Fixed signatures of deleted assignment operators ( #408 )
...
While it technically doesn't matter what the return type of the assignment operator is since it's deleted, assignment operators should return a reference instead of a value.
2016-12-19 11:24:23 -08:00
Thad House
24b5a9c389
Adds UsageReporting include when using the LabVIEW shim ( #401 )
2016-12-16 22:42:45 -08:00
Thad House
77f664a6b1
Fixes simulator HAL builds ( #391 )
2016-12-06 19:56:31 -08:00
Thad House
bff67887fd
Adds capabilities to support certain HAL functionality from LabVIEW ( #382 )
...
They can only include HAL/LV/HAL.h, HAL/cpp/*.h, and HAL/handles/*.h.
Nothing else will work properly.
2016-12-02 00:32:01 -08:00
Thad House
351ff5eb48
Adds new Threads API for priority setting while using std::thread ( #379 )
...
Also adds Java API for doing the same to Java threads (standard Java Thread.setPriority only works
when Java is run as root, even if the process has the right privileges).
2016-12-01 21:06:19 -08:00
Thad House
bfe429de51
Switches handles back to std::array ( #367 )
...
The binary size is being increased much less then when we originally
tried this. Using static arrays save a pointer indirection and will help
with cache in real time cases.
2016-11-24 21:55:20 -08:00
Thad House
f3d66e92ec
Searches for USB serial devices to get the correct VISA object ( #363 )
...
Fix was made in LabVIEW, and this matches what was done there.
2016-11-22 21:51:47 -08:00
Dustin Spicuzza
7bcd243ec3
Reorder the HAL handle types ( #357 )
2016-11-20 00:01:24 -08:00
Thad House
b115c75226
Adds SPI DIO to WPILib ( #256 )
2016-11-18 14:15:53 -08:00
Thad House
1efb2e4d3d
Deprecates Task and Semaphore, and changes other deprecations to use wpiutil version ( #330 )
2016-11-05 00:23:52 -07:00
Thad House
861726cefa
Adds gradle task to fix NI libraries whenever new ones are added. ( #325 )
...
Generates genlinks, and modifies headers to make them self contained
2016-11-04 15:17:17 -07:00
Thad House
3fe0f49ac0
Moves NI headers to their own folder in the repo ( #324 )
2016-11-04 01:22:28 -07:00
Thad House
ecb2add791
Removes additional references to CANTalon from the library. ( #312 )
2016-11-01 20:13:26 -07:00
Thad House
9bbdaf300b
Removes the task class from wpilib ( #314 )
...
Was required back on the cRIO, but there are much better alternatives
nowadays.
2016-11-01 20:12:08 -07:00
Thad House
29f999e2b2
Adds new handle structure and type for vendors ( #297 )
2016-10-26 23:09:33 -07:00
Thad House
75463a249f
Implements threaded notifiers and interrupts in the HAL ( #281 )
2016-10-23 14:34:43 -07:00
Kevin-OConnor
567ea1d58d
Remove CAN TalonSRX from WPILib (moving to external library) ( #268 )
2016-10-13 18:50:20 -07:00
Tyler Veness
5dfae8d6bd
Fixed include order ( #245 )
...
See wpilibsuite/styleguide (#11 ).
2016-09-25 16:50:13 -07:00
Tyler Veness
659dbef751
Ran format.py after writing unit tests for and fixing bugs in it ( #239 )
2016-09-21 23:48:54 -07:00
sciencewhiz
5d2a08443b
Fix Typos. Fixes artf4853 ( #242 )
2016-09-18 08:43:22 -07:00
Tyler Veness
087eeec760
C standard library functions and types are now prefixed with std:: ( #227 )
2016-09-14 20:52:06 -07:00
Thad House
2ecb939b35
Add a method to detect the HAL runtime version ( #228 )
2016-09-13 21:21:57 -07:00
Thad House
c2fc6711d8
Switches enums to use a fixed size for their base ( #230 )
2016-09-13 20:27:38 -07:00
Tyler Veness
6bfc008673
Replaced snake case variable names with mixed case ( #221 )
2016-09-06 19:43:24 -07:00
Tyler Veness
2c94d0ba2f
Cleaned up integer type usage in the HAL ( #192 )
...
Replaced all uses of built-in types except char with stdint.h typedefs and all unsigned types with signed in the HAL
2016-09-06 19:39:28 -07:00
Tyler Veness
05626cfafe
Fixed cpplint.py warnings ( #215 )
...
* Fixed cpplint.py [build/include_order] and [build/include_what_you_use] warnings
* Fixed cpplint.py [readability/casting] warnings
* Updated .styleguide format
* Fixed cpplint.py [build/header_guard] warnings
2016-09-05 13:55:31 -07:00
Thad House
59ec54887d
Switches notifier to use a typedef for the callback, and prepends HAL_ to InterruptHandlerFunction ( #216 )
2016-09-05 07:31:51 -07:00
Tyler Veness
93b486b6ba
Replaced C-style casts found by GCC in HAL, wpilibc, and JNI ( #211 )
2016-08-24 21:39:16 -07:00
Thad House
40365faeda
Adds a static mutex to notifiers to stop destructor race condition ( #204 )
2016-08-15 19:56:32 -07:00
Tyler Veness
45b8e9ab4f
Renamed "pin" to "channel" and variables with underscores now use mixed case ( #194 )
2016-08-12 13:45:28 -07:00
Tyler Veness
3819cd0768
Updated cpplint.py and fixed its regexes for C-style casts ( #193 )
...
Additional C-style cast warnings thrown were also fixed.
2016-08-11 23:38:45 -07:00