Thad House
1d15fcd072
Prints error when HAL_GetFPGATime call fails in fpga_clock. ( #558 )
2017-06-30 18:46:50 -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
5987cfeaaf
Fix SPIs to not set CS DIO pins into DIO mode ( #504 )
...
HAL_GetPort both allocates the DIO and sets the DIO into DIO mode. The DIO setting was overriding the SPI setting on the port, so SPI chip selects were broken if you had more than one. Instead use CreatePortHandleForSPI, which is a special function that only allocates the DIO handle, but doesn't actually set the DIO into DIO mode.
2017-05-08 20:04:41 -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
Tyler Veness
12f759860e
Corrects assumptions about return values from i2c-lib ( #484 )
...
Fixes #478
2017-02-17 00:05:54 -08:00
Thad House
71d0a07e0a
Fixes solenoid allocation error message ( #455 )
...
The error was NO_AVAILABLE_RESOURCES, which is not the proper error to
return. Instead, just return the error directly from the allocation.
2017-01-14 23:59:05 -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
a03e3d7eb9
Fixes HAL to build without all headers included in HAL.h ( #418 )
2016-12-21 23:55:31 -06:00
Jaci R
a42ec08d16
Fix RoboRIO Cross-Toolchain GCC Status ( #405 )
...
* Dedicated RoboRIO Toolchain, allow Toolchain Path to change
* Add cCompiler Tool to correctly discover RoboRIO GCC on Mac
* Add @333fred requests for GString and ToolChainPath
* Add Toolchain Path option to README
2016-12-21 19:56:28 -08:00
Thad House
fddb6cd9d8
Fixes SPI Accumulator averages ( #415 )
2016-12-21 20:17:53 -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
323d68d460
Fixes multiple initialization of HAL_BaseInitialize ( #400 )
2016-12-13 12:31:44 -08:00
Thad House
8216d85e52
Adds check for PWM overallocation ( #392 )
2016-12-09 21:23:54 -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
sciencewhiz
31fecc28a4
Check for NaN motor speed. Fixes artf5467. ( #376 )
2016-11-26 21:04:40 -08:00
Thad House
7d721eb569
Fixes memory leak in SerialHelper VISA ( #366 )
2016-11-25 15:52:21 -08:00
Fred Silberberg
d48aac5beb
Gradle Update ( #372 )
...
This does a major cleanup on our gradle files, primarily converting all instances of manual dependency downloading to use the correct configuration-based method, which has the advantage of being both less code and more safe.
2016-11-24 23:44:35 -08:00
Fred Silberberg
14b56db99e
Gradle 3.2.1 ( #369 )
...
Updated to gradle 3.2.1. This also moves all of the task graph listeners for dependency setup to use the gradle model, making it both safer and reducing line count.
2016-11-24 22:15:54 -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
57ef5cfd07
Splits out SerialHelper to allow using OS or VISA resources ( #365 )
...
Also removes regex and uses simple splits instead
2016-11-24 21:53:04 -08:00
Peter Johnson
687f0c7dc0
Use const parameters in std::sort lambda. ( #364 )
...
This is more correct, and non-const fails on gcc 4.8.
2016-11-22 22:30:58 -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
Tyler Veness
69422dc063
Replaced floats with doubles ( #355 )
...
This makes our APIs more consistent. With optimizations enabled, doubles are just as efficient as floats on ARMv7, so we should take advantage of the extra precision.
2016-11-20 07:25:03 -08:00
Dustin Spicuzza
7bcd243ec3
Reorder the HAL handle types ( #357 )
2016-11-20 00:01:24 -08:00
Thad House
8f70bea899
Fixes Athena Runtime build not including ntcore ( #356 )
2016-11-19 23:58:29 -08:00
Thad House
b115c75226
Adds SPI DIO to WPILib ( #256 )
2016-11-18 14:15:53 -08:00
Thad House
47319960a5
Fixes a missed change to unique_ptr in the HAL ( #337 )
2016-11-08 16:53:17 -08:00
Thad House
6eb82bc314
Exclude genlinks.bat from HAL zip ( #333 )
2016-11-06 21:47:34 -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
03d8f9193b
Moves using namespace from ChipObject.h into hal namespace ( #323 )
2016-11-03 23:01:13 -07:00
Tyler Veness
ba8761e39e
"using" directives are no longer used in global namespaces ( #219 )
2016-11-01 23:09:51 -07:00
Thad House
ecb2add791
Removes additional references to CANTalon from the library. ( #312 )
2016-11-01 20:13:26 -07:00