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
81212d80c6
Fixes ultrasonic declaration ( #328 )
...
Also adds test to ensure this doens't happen again
2016-11-04 15:02:29 -07:00
Thad House
5e54969f6b
Adds Task back into WPILibC ( #320 )
...
Note that deprecation has not been added yet, since we need to add the
deprecation API's for MSVC and GCC < 4.9.
2016-11-02 22:17:40 -07:00
Peter Johnson
59267da72b
Namespace all wpilibc functions/classes into "frc" namespace. ( #311 )
...
Base.h provides a backwards compatibility shim (enabled unless
NAMESPACED_WPILIB is defined) that does a "using namespace frc".
However, as some header files do not include Base.h, this may
be a breaking change in some corner cases (with an easy fix).
Fixes #218 .
2016-11-01 22:33:12 -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
Thad House
247cef5ec2
Removes CANJaguar from wpilib ( #300 )
...
Now located at https://github.com/wpilibsuite/CANJaguar .
2016-10-27 10:54:52 -07:00
Thad House
70343c0b3f
Fixes missing function for Timer::GetMatchTime() ( #299 )
2016-10-25 19:01:18 -07:00
Thad House
1071686d81
Replaces C++ IsNewControlData semaphore with atomic bool, and Java code with AtomicBool ( #187 )
2016-10-24 20:32:43 -07:00
Fred Silberberg
e5e1a1a4d1
Moved version generation to the WPILib versioning plugin. ( #277 )
...
* Moved version generation to the WPILib versioning plugin. This also moves ntcore and wpilib to the latest available version.
* Fixed description string.
* Gave full path for ignored files.
2016-10-20 23:54:04 -07:00
Fred Silberberg
3784b665de
Updated version for beta 1 ( #270 )
2016-10-13 18:50:39 -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
Austin Shalit
27bf94fd06
Remove kDefaultPeriod from IterativeRobot ( #232 )
...
* Remove kDefaultPeriod from IterativeRobot
* Remove period
* Remove NextPeriodReady
2016-10-09 13:58:30 -07:00
Thad House
4896a77c86
Fixes guarantees for waitForData ( #252 )
...
As discussed in #234 , we now check for the timeout case and handle a
timeout correctly.
2016-10-09 11:46:01 -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
e65f9908d7
Makes IterativeRobot not double check for new control data ( #253 )
...
Previously could cause a race condition. Also moves wait to the top of
the loop in order to avoid having an initial loop be ran before data can
be check.
Sim is handled in #232 , except that needs to be updated as well to move
the wait to the top of the loop.
2016-10-02 09:05:32 -07:00
Tyler Veness
5dfae8d6bd
Fixed include order ( #245 )
...
See wpilibsuite/styleguide (#11 ).
2016-09-25 16:50:13 -07:00
Tyler Veness
049fec470b
Fixed compilation with GCC 6 ( #248 )
...
Since newer versions of GCC emit more warnings and errors, I tried building WPILib with GCC 6.2.0. This patch fixes compilation errors that occurred.
2016-09-23 20:27:11 -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
Austin Shalit
1416fb8f67
Update Periodic JavaDoc ( #231 )
2016-09-13 21:21:25 -07:00
Thad House
f271185cbc
Adds a RobotPeriodic method to IterativeRobot ( #226 )
...
Called globally during each IterativeRobot loop
2016-09-13 20:25:18 -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
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
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
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
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
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