sciencewhiz
e4e1eab413
Fix cancel of inner commands in ConditionalCommands ( #858 )
2018-01-18 20:04:33 -08:00
Tyler Veness
0ef9803363
Update copyright year to 2018 ( #864 )
...
Also fix a few files with incorrect line endings.
2018-01-02 11:20:21 -06:00
Peter Johnson
86ac70a125
Fix wpilibcIntegrationTests RobotController warnings. ( #832 )
2017-12-11 22:15:29 -08:00
Tyler Veness
942ba51765
Reclassified NetworkTables headers as "other library" ( #775 )
2017-12-07 23:34:29 -08:00
Tyler Veness
3befc7015b
Make MotorEncoderTest use LinearDigitalFilter's reference overload ( #811 )
2017-12-04 22:37:06 -08:00
Thad House
64bfdc1a69
Bail out of the integration tests if enable fails ( #792 )
...
A failure is much better then an infinite loop.
2017-12-04 20:24:26 -08:00
Tyler Veness
59c4984ed6
Deprecated internal filter of PID controller ( #746 )
...
This was replaced with an external LinearDigitalFilter.
2017-12-04 20:05:02 -08:00
sciencewhiz
cbd08a1e11
Add tests for equivilance of RobotDrive and DifferentialDrive/MecanumDrive ( #732 )
...
Add documentation for how to get same results as RobotDrive and improve
RobotDrive documentation
2017-11-29 21:41:00 -08:00
Thad House
fa0b4428e9
Runs DS enabled loop in process ( #785 )
...
Solves mutex issues, and other issues with the existing teststand
software. And simplifies the unit test structure.
2017-11-28 19:12:05 -08:00
sciencewhiz
7a250a1b93
Implement PCM One Shot feature. Fixes artf4731 ( #539 )
2017-11-26 12:55:21 -08:00
Tyler Veness
85157a56c3
CircularBuffer now uses an idiomatic interface in C++ and Java ( #421 )
2017-11-22 17:04:57 -08:00
Tyler Veness
7a0dd9baa9
Add return-to-zero test for LinearDigitalFilter moving average ( #751 )
...
Ensures LinearDigitalFilter moving average returns to zero after non-zero
values are inserted.
Tests for issue #642
2017-11-19 20:16:09 -08:00
Tyler Veness
4a07f0380f
PIDController class now uses LinearDigitalFilter for filtering velocity instead of internal queue ( #38 )
2017-11-19 15:58:30 -08:00
Peter Johnson
c2d95db3ab
Fix PreferencesTest. ( #739 )
2017-11-15 23:56:17 -08:00
Peter Johnson
4d559f3856
Use wpi::mutex instead of std::mutex. ( #730 )
...
This uses a priority-aware mutex on Linux platforms.
Fixes #729 .
2017-11-13 09:51:48 -08:00
Tyler Veness
0c83cad70c
Upgraded clang-format to 5.0 ( #431 )
2017-11-11 22:09:51 -08:00
sciencewhiz
fbfe85568b
Fix preferences test ( #699 )
2017-10-29 21:30:50 -07:00
Tyler Veness
a7e9ac1062
Fix capitalization of class names in PIDToleranceTest.cpp ( #588 )
2017-10-16 21:16:33 -07:00
Austin Shalit
877a9eae1f
Add SpeedControllerGroup ( #362 )
2017-10-16 19:54:36 -07:00
Tyler Veness
dd66b23845
Remove priority mutex ( #644 )
...
* Removed hal::priority_condition_variable
* Replaced uses of priority mutexes with std::mutex and std::recursive_mutex
This allowed replacing a use of std::condition_variable_any with
std::condition_variable.
* Replaced all uses of std::recursive_mutex with std::mutex equivalents
2017-09-28 23:32:35 -07:00
Peter Johnson
57ba58917d
PreferencesTest: Use new NetworkTables API. ( #636 )
...
This avoids deprecated warnings from the old API.
2017-09-07 22:40:18 -07:00
Tyler Veness
6e4f66cc8b
Classify other libraries' headers properly and fix committed formatting issues ( #620 )
2017-08-27 00:11:52 -07:00
Tyler Veness
f151892db5
Contents of copyright line now has more standard ordering ( #585 )
2017-08-24 00:06:13 -05:00
Thad House
e1195e8b9d
Update to 2018_v4 image and new build system. ( #598 )
...
* Revert "Force OpenCV to 3.1.0 (#602 )"
This reverts commit 50ed55e8e2 .
* Removes Simulation
* Removes old build system
* Removes old gtest
* Adds new gmock and gtest
* Updates to new ni-libraries
* removes MyRobot (to be replaced)
* moves files to new location
* Adds new sim backend and new test executables
* updates .styleguide and .gitignore
* Changes cpp WPILibVersion to a function
MSVC throws an AV with the old version.
* Disables USBCamera on all systems except for linux
* 2018 NI Libraries
* New build system
2017-08-18 21:35:53 -07:00
Tyler Veness
d682295ccd
Miscellaneous cleanups for HAL, wpilibc, and wpilibj JNI ( #589 )
...
* Static functions in the HAL implementation were placed in the hal namespace
* "using namespace" declarations in HAL/cpp/Log.h and Timer.cpp were replaced
with "using" declarations for std::chrono
* An extra include was removed from AnalogGyro.cpp
* InterruptableSensorBase's constructor was defaulted
* Newlines were added to some wpilibc integration tests for grouping
* A variable in HALUtil.h was renamed to follow the style guide
Supersedes #586
2017-08-07 17:36:34 -07:00
Tyler Veness
97437ee58b
Miscellaneous formatting and style fixes for integration tests ( #570 )
...
Added newline before comment block and replaced angle brackets around includes
with quotation marks. All other integration tests use quotation marks for WPILib
includes.
2017-07-09 19:27:43 -07:00
Thad House
2da26c0579
Make HAL_Initialize timeout configurable, makes result a bool, and makes Java an exception rather than assert. ( #557 )
2017-07-01 00:43:06 -07:00
Tyler Veness
68b63632c4
Removed functions that have been deprecated for at least one year ( #551 )
2017-06-30 22:05:33 -07:00
Tyler Veness
9d93820717
Replaced STL streams with LLVM's raw_ostream ( #344 )
...
std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
2017-06-30 19:33:43 -07:00
Thad House
efec0c5cc3
Moves the HAL priority_ custom types to the hal namespace ( #532 )
...
There is a shim for backwards compatibility, just like the frc namespace.
As with the frc namespace, the library compiles without the shim.
2017-05-11 21:25:22 -07:00
sciencewhiz
f32e696fef
Fix exception when getting a relay in kReverse Direction. Fixes #458 ( #525 )
...
Add additional tests that would have caught this previously.
2017-05-08 21:54:03 -07:00
Tyler Veness
7a049c29bd
Added a conditional command that chooses 1 of 2 commands ( #435 )
...
Tests and documentation for ConditionalCommand were also added. This is a fixed version of #9 , so it doesn't support lambdas.
Closes #9
2017-01-04 23:48:13 -08:00
Tyler Veness
4b6dc9583a
Corrected order of access specifiers in MockCommand class ( #436 )
2017-01-02 00:44:35 -08:00
Austin Shalit
ed1a94531a
Update license headers to 2017 ( #434 )
2017-01-01 00:05:57 -08:00
Thad House
94b8ac42ca
Adds CPP version of vision pipeline ( #399 )
2016-12-21 23:58:42 -06: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
6bc092f3ae
Updates SPI device pin ( #348 )
2016-11-18 14:14:51 -08: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
Kevin-OConnor
567ea1d58d
Remove CAN TalonSRX from WPILib (moving to external library) ( #268 )
2016-10-13 18:50:20 -07:00
Thad House
a59e00e901
Adds a test to make sure WaitForData is properly waiting ( #258 )
2016-10-06 11:18:47 -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
ac9b6f7b18
Implemented CircularBuffer resizing ( #224 )
2016-09-20 19:43:34 -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
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
Tyler Veness
f7c3f13a7f
Improve CircularBuffer documentation ( #180 )
2016-07-16 20:50:19 -07:00