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
Fredric Silberberg
fe7165a8f7
Removed double-add of shared classpath. Fixes #157 . ( #164 )
2016-07-13 22:20:30 -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
05c00430b3
Fixes CPP lint errors added to HAL. ( #173 )
2016-07-13 20:16:45 -07:00
Thad House
5305087162
Fixes a missed float to double change in the HAL. ( #176 )
2016-07-13 19:25:57 -07:00
Thad House
b979fc2a67
Adds SetDefault Java definitions to Def file ( #82 )
2016-07-13 01:53:26 -07:00
Thad House
58092c5190
Adds SetDefault methods to NetworkTables ( #54 )
...
There was no way to atomically check for a key in the table,
and then setting if it if non existant. Back before persistent
this was not a problem, however now it is, as its possible for
values to be added before team's robot programs start. This makes
the old method of calling Put*** methods in RobotInit invalid.
This adds SetDefault methods, which do this atomically.
2016-07-13 00:31:03 -07:00
Fredric Silberberg
6615a34e99
Added contributing and license files ( #63 )
2016-07-12 23:20:51 -07:00
Peter Johnson
50a2612839
Notifier: maintain freelist to reuse uids. ( #81 )
...
This avoids endless growth of the vector.
Fixes #80 .
2016-07-12 23:19:46 -07:00
Tyler Veness
6251697f60
Added Lint task and parallelized format.py ( #161 )
2016-07-12 21:59:09 -07:00
Thad House
ea1a1e6bc3
Makes the CANJaguar error status messages more useful ( #165 )
...
The previous version would just return the class name for the
DigitalOutput port. Now it actually gets the dio port value for better
readability.
2016-07-12 21:53:51 -07:00
Thad House
edf5ecd4a0
Changes HAL Headers to be C compliant. ( #171 )
2016-07-12 21:53:06 -07:00
Tyler Veness
1b1ee7f9f3
Renamed spiGetSemaphore() to spiGetMutex() ( #170 )
2016-07-12 15:11:41 -07:00
Tyler Veness
3fade171f9
Fixed inconsistencies in documentation ( #168 )
2016-07-12 10:50:21 -07:00
Tyler Veness
c99e89dfca
Fixed the remaining cpplint.py warnings ( #160 )
...
Replaced std::sprintf in BaeUtilities.cpp with std::stringstream and marked GetVisionErrorText() in FrcError.cpp as NOLINT
2016-07-12 10:46:34 -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
0cb288ffba
Fixes warnings thrown by cpplint.py ( #154 )
...
* Fixed cpplint.py [runtime/int] warnings
* Fixed cpplint.py [readability/casting] warnings
* Fixed cpplint.py [readability/namespace] warnings
* Fixed cpplint.py [readability/braces] warnings
* Fixed cpplint.py [whitespace/braces] warnings
* Fixed cpplint.py [runtime/explicit] warnings
* Fixed cpplint.py [runtime/printf] warnings
* Fixed cpplint.py [readability/inheritance] warnings
* Fixed cpplint.py [whitespace/tab] warnings
* Fixed cpplint.py [build/storage_class] warnings
* Fixed cpplint.py [readability/multiline_comment] warnings
* Fixed cpplint.py [whitespace/semicolon] warnings
* Fixed cpplint.py [readability/check] warnings
* Fixed cpplint.py [runtime/arrays] warnings
* Ran format.py
2016-07-10 17:47:44 -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
Tyler Veness
aafca4ed7f
Reduced duplication between formatting scripts with Task base class ( #80 )
...
Also added scripts for EOF newline management and for removing trailing whitespace. configure.bat was rewritten to use CRLF line endings. Documentation for the existing scripts was also improved.
2016-07-10 08:33:27 -07:00
Thad House
ea6876e81f
Some general HAL cleanups ( #153 )
2016-07-09 17:38:18 -07:00
Tyler Veness
aa9c2b2c92
Made Log.h use std::chrono ( #136 )
2016-07-09 16:58:31 -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
7597e3c274
Switches handle resources to dynamic arrays ( #142 )
2016-07-07 21:32:41 -07:00
Thad House
0a983eeeb8
Moves Gyros to the HAL ( #131 )
2016-07-07 21:31:45 -07:00
Austin Shalit
b036bf2e34
Add method to get the port number of a Joystick ( #137 )
2016-07-04 09:18:28 -07:00
Tyler Veness
73602e6cb4
Added missing include for robot startup macro ( #135 )
2016-07-03 23:24:56 -07:00
Thad House
72455280a9
Removes unneeded resource includes from WPILibC files ( #134 )
2016-07-03 23:18:45 -07:00
Thad House
ea95bb85aa
Adds Constants from new constants class to encoders ( #133 )
2016-07-03 21:52:49 -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
b45e0917ae
Adds port constants to the HAL ( #130 )
2016-07-02 23:19:14 -07:00
Thad House
0e127679c1
Removes some unused variables from DigitalInternal ( #128 )
2016-07-02 16:33:19 -07:00
Fredric Silberberg
2f36d508c4
Gradle 2.14 ( #118 )
...
Updates the gradle version to 2.14. In doing so, some model elements have changed. Additionally, some redundant elements have been removed from the gradle scripts.
2016-07-02 16:32:14 -07:00
Thad House
cf29d4560b
Moves HAL PCM objects to header and HAL namespace ( #129 )
2016-07-02 11:58:49 -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
Peter Johnson
eb4350033b
Update Travis OS X build to use newest image. ( #75 )
...
Fixes #74 .
2016-07-01 00:08:43 -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
Fredric Silberberg
384ad57d21
Updates Gradle to 2.14 ( #78 )
2016-06-30 19:57:29 -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
Thad House
77a1af44c4
Removes freePort from the HAL ( #116 )
...
It was a no-op, and most likely in the future it will be that way too.
Removing to clean up the API.
2016-06-27 13:38:33 -07:00