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
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
e1fc60b8dd
SolenoidBase functions are now static ( #530 )
...
Instance methods were kept around for backwards compat in Java. In C++,
the instance methods were changed to match Java. Also some cleanup to
the JNI layer to match updated variable types we missed.
Closes #416
2017-05-08 21:55:11 -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
2e3503517d
Add OS level serial port ( #426 )
2017-01-04 19:38:17 -08:00
Thad House
cc246bb9ac
Switches JNI to use new jni_util methods ( #404 )
...
* Uses WPIUtil string objects in JNI
* Switches JNI to use new jni_util classes
2016-12-23 13:13:17 -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
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
4de70bff5e
Adds missing JNI method definitions ( #371 )
2016-11-24 21:49:34 -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
ac50d7cf8a
Removes NiVision from allwpilib ( #305 )
2016-11-18 20:04:21 -08:00
rrossbach
412b80da30
Fixes joystick button handling HAL JNI layer (buttons are in an ( #341 )
...
int, not a byte)
2016-11-10 20:21:54 -08:00
Thad House
ecb2add791
Removes additional references to CANTalon from the library. ( #312 )
2016-11-01 20:13:26 -07:00
Thad House
81221c4874
Moves JNI internal utility methods to frc namespace ( #310 )
2016-10-31 23:04:49 -07:00
Thad House
4f4c52d6d5
Switches JNI to use SafeThread from WPIUtil ( #282 )
2016-10-23 14:18:46 -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
9859c14ca1
Fixes status parameter in wrong location for initialization range functions ( #260 )
2016-10-06 11:04:38 -07:00
Thad House
a656207220
Forces exceptions to throw on HAL handle creation functions ( #209 )
...
Fixes #199
2016-09-29 20:18:40 -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
0cd05d1a42
Cleaned up integer type usage in wpilibc ( #92 )
...
Replaced all unsigned types to signed and int32_t with int in wpilibc
2016-09-06 00:01:45 -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
Thad House
512ecf6490
Makes SensorBase checks use HAL check methods ( #182 )
2016-07-20 22:47:29 -07:00
Thad House
dffaa0abb9
Moves HAL cpp headers from root to HAL directory ( #174 )
...
Could not include the ctre and NetComm folders, as those would require
changing ctre dependancies. Also removes a duplicated FRCComm header
that was not needed.
2016-07-14 00:17:29 -07:00
Tyler Veness
20c6525b1d
Cleaned up wpilibj enums ( #167 )
...
* Converted enumerated constants in wpilibj to enums and made their implementation more consistent
* Reflowed text in JNI calls and updated JNI signatures
2016-07-13 23:39:58 -07:00
Thad House
d2aa168f66
Implements Better Error Messages from the HAL ( #172 )
...
* Makes the HAL provide a better error message for certain things.
* Makes Java error messages better
* Updates C++ errors.
* Moves handles header folder to HAL directory
2016-07-13 20:29:28 -07:00
Thad House
b51e85ae26
Switches HAL to fixed length signed integers, and adds our own HAL_Bool Type ( #155 )
...
* Switches HAL to fixed length signed integers, and adds our own HAL_Bool type
* Replaces HAL Floats with Doubles
Doubles are just as fast as floats with optimizations turned on, so
switches to all doubles. All made doubles for consistency.
* Prepends HAL/ to HAL include files. Also fixes some range errors
2016-07-12 10:45:14 -07:00
Thad House
4a98e68815
Moves the DS new data wait calls down to the HAL. ( #156 )
2016-07-10 23:10:05 -07:00
Tyler Veness
e44a6e227a
Refactored wpilibj HAL JNI to simplify generating it from HAL headers ( #109 )
...
wpilibj FRCNetworkCommunication.java is now generated from HAL headers and was renamed to FRCNetComm.java
2016-07-10 16:24:57 -07:00
Thad House
ea6876e81f
Some general HAL cleanups ( #153 )
2016-07-09 17:38:18 -07:00
Thad House
43a2eccdc9
Finishes Prefix Renames ( #152 )
2016-07-09 01:12:37 -07:00
Thad House
b637b9ee4c
Prepends all HAL functions with HAL_ ( #146 )
2016-07-09 00:24:26 -07:00
Thad House
5ad28d58ec
Switches PWMs to do scaling at the HAL level. ( #143 )
2016-07-08 21:29:29 -07:00
Thad House
be2647d44e
Switches Java to use HAL Constants ( #145 )
2016-07-08 00:08:07 -07:00
Thad House
4a3e3a6324
Changes DigitalSource API for HAL ease of use ( #144 )
2016-07-07 21:43:55 -07:00
Thad House
0a983eeeb8
Moves Gyros to the HAL ( #131 )
2016-07-07 21:31:45 -07:00
Thad House
fb865d3ee7
Adds a special exception and status message for a handle error ( #127 )
2016-07-03 17:27:06 -07:00
Thad House
36ac37db8c
Moves Encoders to Handles and Moves WPILib Encoders to HAL ( #124 )
2016-07-03 15:22:22 -07:00
Thad House
8c4ad62422
Switches Solenoids to Handles ( #126 )
2016-07-02 09:24:54 -07:00
Thad House
62c217cd01
Switches compressor to handles ( #125 )
2016-07-02 08:22:44 -07:00
Thad House
0f105a26f7
Switches Counters to Handles ( #123 )
2016-07-01 00:29:08 -07:00
Thad House
47694ef810
Switches DigitalPWM to Handles ( #121 )
2016-06-30 23:43:00 -07:00
Thad House
f77a976fbb
Switches resource errors to AllocationExceptions in JNI ( #122 )
2016-06-30 21:39:55 -07:00
Thad House
3593ecb17e
Switches PWM and DIO to Handles ( #120 )
2016-06-30 21:39:09 -07:00
Thad House
9b2af0d090
Switches relays to handles ( #119 )
2016-06-29 19:58:14 -06:00
Thad House
e8e052712e
Switches AnalogInputs and AnalogTriggers to Handles ( #117 )
...
Results in a breaking change to AnalogTrigger int constructor. If a user wants
multiple AnalogTriggers, they must use the AnalogInput constructor.
2016-06-27 21:32:30 -07:00