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
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
Thad House
776cb915bc
Revert "PIDController queue now stores inputs instead of errors ( #138 )" ( #205 )
...
This reverts commit 7501ae65a1 .
2016-08-13 23:49:31 -07:00
Tyler Veness
7501ae65a1
PIDController queue now stores inputs instead of errors ( #138 )
...
Closes #29 .
2016-08-12 22:04:44 -07:00
Fred Silberberg
3df257cdbb
Set duplicate strategy for all jars and zips to prevent duplicates from occurring ( #191 )
2016-08-12 13:45:58 -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
d347cebf67
Cleaned up odd formatting from static_cast by using "u" integer literal ( #200 )
2016-08-12 06:08:57 -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
Tyler Veness
fd4719cb87
Fixed Doxygen comments for LinearDigitalFilter ( #198 )
2016-08-11 22:47:51 -07:00
Tyler Veness
6ef4745d86
Added Joystick::GetAxisType() ( #98 )
2016-08-07 10:19:19 -05:00
Thad House
a831978cce
Uses the fixed SensorBase functionality in the WPILib ( #185 )
2016-07-21 23:24:06 -07:00
Thad House
512ecf6490
Makes SensorBase checks use HAL check methods ( #182 )
2016-07-20 22:47:29 -07:00
Thad House
0901ae0808
Switches the HAL structs to use unique_ptr ( #183 )
2016-07-20 22:05:17 -07:00
Tyler Veness
f7c3f13a7f
Improve CircularBuffer documentation ( #180 )
2016-07-16 20:50:19 -07:00
Tyler Veness
57efd13f7f
Replaced PIDController::Initialize() with delegating constructors ( #178 )
2016-07-16 12:50:17 -07:00
Tyler Veness
f9ebd3bde6
Fixed PIDController::GetError() for continuous inputs ( #169 )
...
Closes #31
2016-07-15 13:44:04 -07:00
Thad House
2c911b0f7a
Adds a maximum time based cache to HALControlWord data ( #158 )
...
This is one of the calls with the delayed IPC. In the past, teams have
called an IsMode function so much that their code would start lagging.
This adds a cache, so the data is updated either when new data arrives
and we are notified of it, or after 50ms has passes since the last time
the cache was checked and updated.
2016-07-15 13:39:26 -07:00
Tyler Veness
1bf2d58db1
Reordered DriverStation functions in wpilibc and wpilibj to match wpilibc header ( #166 )
2016-07-14 20:50:38 -07:00
Tyler Veness
c93b5bedf9
Miscellaneous cleanups for wpilibc PID controller ( #175 )
...
* Reorder wpilibc PIDController's SetAbsoluteTolerance() and SetPercentTolerance() implementations to be consistent with header and wpilibj
* Added std:: prefix to fabs() calls in wpilibc PIDController
2016-07-14 13:51:32 -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
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
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
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
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
36ac37db8c
Moves Encoders to Handles and Moves WPILib Encoders to HAL ( #124 )
2016-07-03 15:22:22 -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
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
3593ecb17e
Switches PWM and DIO to Handles ( #120 )
2016-06-30 21:39:09 -07:00