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
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
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
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
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
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
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
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
Tyler Veness
5ca5583fc3
Removed unnecessary set of parentheses and ran formatter ( #290 )
2016-10-23 16:34:00 -07:00
Thad House
75463a249f
Implements threaded notifiers and interrupts in the HAL ( #281 )
2016-10-23 14:34:43 -07:00
Thad House
7280d241f0
Fixes DIO not erroring with too high of DIO number ( #288 )
2016-10-23 14:21:14 -07:00
Thad House
df4a2c07f0
Checks for system initialization in functions that can be called before creating handle based objects ( #285 )
2016-10-23 10:00:34 -07:00
Thad House
4c1e4fd80c
Updates image to v6 ( #278 )
...
Added exports of the environment variables set in the frcRunRobot script to prevent fork calls.
2016-10-19 22:30:29 -07:00
Kevin-OConnor
567ea1d58d
Remove CAN TalonSRX from WPILib (moving to external library) ( #268 )
2016-10-13 18:50:20 -07:00
Thad House
f1c2b66569
Reverts the 2017 Image for Beta 1 ( #264 )
...
* Revert "Updated the rpath to point to the correct location for the Java integration tests. (#262 )"
This reverts commit c313dde03a .
* Revert "Update image 2017 v5 (#254 )"
This reverts commit 8d1c51b7e9 .
2016-10-12 19:52:49 -07:00
Fred Silberberg
8d1c51b7e9
Update image 2017 v5 ( #254 )
...
* Updated the image version and dependent libraries to 2017 v5.
* Updated version for beta 1
* Some additional library updates, task updates, and rpath updates
2016-10-08 00:13:31 -07:00
Thad House
8b2345a706
Removes an unnecessary function from HAL Power ( #237 )
...
Was not declared in header, so never used anywhere
2016-10-03 09:52:47 -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
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
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
ff93050b31
Remove static_assert for sizeof(uint32_t) <= sizeof(void*) ( #220 )
...
According to #192 , we don't cast integers to pointers anymore. The size static_assert is unnecessary.
2016-09-05 23:31:58 -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
028efff50d
Ran format.py ( #217 )
2016-09-05 07:31:02 -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
Thad House
866046edd1
Some general cleanups in the HAL ( #188 )
...
AnalogTrigger initialization checks are now in the correct order. Plus
frees no longer grab the structure if it is not needed.
2016-07-25 23:26:34 -07:00
Thad House
8da577b56f
Moves FRCDriverStation to athena folder ( #184 )
2016-07-21 23:22:02 -07:00
Thad House
512ecf6490
Makes SensorBase checks use HAL check methods ( #182 )
2016-07-20 22:47:29 -07:00