Thad House
8d218dbca4
Add support for unit testing from GradleRIO for C++ projects ( #1094 )
...
In order for this to properly work, we need to remove the main code.
Then the test component will actually have the main in it. Example tests will be added later.
2018-05-28 02:07:03 -04:00
Thad House
938f835142
Update things deprecated in gradle 4.8; remove unused function ( #1093 )
2018-05-28 02:00:03 -04:00
Thad House
1dc55c03dc
Add Windows PDBs to release zips, and skip strip on mac ( #1092 )
...
Mac shared libraries drop about 10% in size, but the symbol library is about 5x the size of the original library.
2018-05-28 01:58:46 -04:00
Thad House
859b457c3d
Add libuv dependency ( #1109 )
2018-05-28 01:56:58 -04:00
Tyler Veness
8958c4eabd
Fixed wpilibj_frcnetcomm.py and added invocation to Travis ( #1106 )
...
Making Travis run wpilibj_frcnetcomm.py will help avoid bitrot in
FRCNetComm.java in the future. Formatting was also enabled on Python
source files and FRCNetComm.java was added back to the generated files
list.
2018-05-28 00:53:39 -04:00
Austin Shalit
7c9517ce5b
Fix gain encapsulation in LinearDigitalFilter ( #1105 )
2018-05-28 00:52:59 -04:00
Thad House
5bf9720ccf
Use externally built Google Test ( #1108 )
2018-05-28 00:44:12 -04:00
Peter Johnson
d1587ed2c1
LICENSE.txt: Update copyright date to 2018. ( #1100 )
2018-05-26 10:57:33 -04:00
Thad House
5fcb67aaf5
Fix Checkstyle ( #1095 )
...
Broken by merge of earlier change.
2018-05-24 22:56:36 -04:00
Austin Shalit
2e5fece594
Add utility class tests ( #871 )
...
Checks for classes that only have static methods.
2018-05-24 20:39:15 -04:00
Thad House
863cfde394
Adds tests to ensure all examples have matching item in json file ( #1079 )
...
Also checks that all items in the json file have a matching example
One was missing from C++, that example was added (The one in eclipse was completely wrong)
2018-05-24 20:08:37 -04:00
Thad House
c4728d291e
Makes CAN API initializer setup HAL ( #1084 )
2018-05-24 20:07:03 -04:00
Thad House
fb45a5b314
Allows passing in the main robot class from the command line ( #1091 )
2018-05-24 20:05:58 -04:00
Thad House
86c1f8ae50
Fixes initialization when not using the provided main ( #1085 )
...
Helpful for simulation, which might not use our main.
2018-05-24 20:03:19 -04:00
Thad House
381c25c573
Fixes interrupts not getting closed properly. ( #1088 )
...
The threads being created were never getting cleaned up.
2018-05-24 20:02:13 -04:00
Thad House
62d5301b1f
Changes notifier to be closable. ( #1090 )
...
Fixes #1089
2018-05-24 19:56:29 -04:00
Austin Shalit
40cc743cc7
Enable checkstyle on cscore, ntcore, wpiutil ( #1032 )
...
Also update to version 8.10.
2018-05-24 00:31:04 -04:00
Tyler Veness
ecfe95383c
Made SensorBase a utility class and renamed it to SensorUtil ( #813 )
2018-05-23 23:22:30 -04:00
Austin Shalit
ba93f79d8b
Fix mac builds ( #1087 )
2018-05-23 21:36:43 -04:00
Peter Johnson
dcc2764844
Default to requiring frc namespace for wpilibc. ( #972 )
...
Instead of defining NAMESPACED_WPILIB to remove the "using namespace frc"
shim in Base.h, instead require NO_NAMESPACED_WPILIB be defined to add it.
Fix up various examples to use correct namespacing.
2018-05-22 23:33:50 -07:00
Thad House
cbaff52850
Implements AutoCloseable for types, replacing free() ( #1048 )
2018-05-22 23:33:17 -07:00
Peter Johnson
a2ecb1027a
Update LLVM to latest upstream. ( #1080 )
...
Also change header guards to WPI header guards.
Remove StringRef::c_str() customization, replacing the handful of uses with Twine or SmallString.
TCPStream: Include errno.h and make Windows includes lowercase for consistency.
Upstream LLVM version: eb4186cca7924fb1706357545311a2fa3de40c59
2018-05-22 23:31:08 -07:00
Thad House
680aabbe7c
Add new CAN API ( #1036 )
2018-05-21 16:09:38 -07:00
Thad House
55b0fe0082
Fixes JNI symbol check on VS 2015 ( #1078 )
2018-05-19 20:06:05 -07:00
Thad House
8b8c3d5462
Updates NativeUtils dependency ( #1077 )
...
New version handles dependency extraction better, and easier for IDEs
2018-05-19 18:49:29 -07:00
Thad House
38a7786f22
Remove spotless ( #1074 )
...
Enforcing Line endings isn't a good idea for cross system development,
and wpiformat handles everything else
2018-05-19 18:48:38 -07:00
Tyler Veness
df182f382e
PIDController now supports composition ( #976 )
...
For example, an outer position feedback controller can now drive the
reference of an inner velocity feedback controller.
2018-05-19 01:32:43 -07:00
Thad House
5cc7573574
Updates JNI to support embedded jni libraries for easier setup ( #1075 )
2018-05-19 01:31:24 -07:00
Austin Shalit
17401e10f0
Add setting to invert the right side of the drive ( #1045 )
2018-05-19 01:22:20 -07:00
David Vo
73439d8213
DriverStation: Fix getStickButtonPressed/Released ( #856 )
...
This fixes DriverStation in WPILibJ to check the existence of buttons and hold the data mutex in getStickButtonPressed() and getStickButtonReleased(), as the corresponding methods in WPILibC do.
2018-05-16 20:00:48 -07:00
Tyler Veness
72a79aac53
Fixed the names of the arguments to some C++ drive classes ( #1070 )
...
The docs already have the correct name, but some headers and sources
weren't updated. Java doesn't have this mistake.
2018-05-16 19:55:27 -07:00
Tyler Veness
c89678971c
Replaced the START_ROBOT_CLASS() macro with a template function ( #1050 )
...
The START_ROBOT_CLASS() macro's main() now calls this function through a
deprecated proxy function to encourage users to switch.
2018-05-16 19:54:39 -07:00
Tyler Veness
64b03704f8
Rename Joystick default channel constants ( #904 )
...
The new naming makes it more clear that the constants are intended to be used
with the channel setters.
2018-05-16 19:53:16 -07:00
Tyler Veness
630fc55bde
Implemented synchronous PID controller ( #993 )
...
SynchronousPID provides a Calculate() function for teams to call themselves
instead of running the controller with a Notifier.
2018-05-16 19:51:37 -07:00
Austin Shalit
f90e429bf9
Add removeAll to preferences ( #987 )
...
This removes all keys except for .type.
2018-05-16 19:50:35 -07:00
Austin Shalit
2e0709f05b
Add spotless to check line endings ( #1055 )
2018-05-16 19:47:35 -07:00
Thad House
11d46713d1
Fixes pessimistic std::move ( #1069 )
...
Also adds test to ensure all the sim headers get compiled
Closes #1068
2018-05-16 19:45:46 -07:00
Tyler Veness
ef442d775d
Refactored DriverStation.java unplugged message handling to match C++ ( #808 )
...
Also fixed error handling in C++ for out-of-bounds arguments.
2018-05-16 00:13:52 -07:00
Tyler Veness
3e6c3c3e98
Replaces Timer in PIDController.java with Notifier ( #878 )
...
Fixes #877 .
2018-05-16 00:02:21 -07:00
Tyler Veness
8d57b73b41
Fixed naming convention of static variable in TimedRobot.java ( #876 )
2018-05-15 23:59:38 -07:00
Tyler Veness
d8c8643b52
Format HTML and XML files ( #944 )
...
Generated by wpilibsuite/styleguide#52 .
2018-05-15 23:58:20 -07:00
Tyler Veness
adb6098353
Removed extra newlines after open curly braces ( #935 )
...
Generated by wpilibsuite/styleguide#115 .
2018-05-15 23:57:24 -07:00
Thad House
938d5379e6
Adds command examples to built examples ( #1062 )
2018-05-15 23:56:03 -07:00
Peter Johnson
7cd15aa049
Re-enable JsonIteratorObjectTest.KeyValue.
2018-05-15 22:31:35 -07:00
Peter Johnson
f8ed48af98
Update json from upstream version 3.1.2.
...
This adds support for ubjson and makes a number of bugfixes.
Binary input and output have switched from strings to uint8_t arrays.
2018-05-15 22:31:35 -07:00
Peter Johnson
c274d1790f
StringRef: Add comparison operators against const char*.
2018-05-15 22:31:35 -07:00
Peter Johnson
6699f86361
Make most StringRef functions noexcept.
2018-05-15 22:31:35 -07:00
Peter Johnson
c2b1ed3edd
ArrayRef: Add value_type typedef like std containers.
2018-05-15 22:31:35 -07:00
Peter Johnson
2c27ad073a
raw_istream enhancements.
2018-05-15 22:31:35 -07:00
Peter Johnson
31bb55c319
Add std::vector and unsigned variants of raw_ostream.
2018-05-15 22:31:35 -07:00