Peter Johnson
abe25b795b
TrajectoryUtil.toPathweaverJson: Create parent directories ( #2214 )
2020-01-01 13:35:04 -08:00
sciencewhiz
354185189c
Update ProjectYear to 2020 ( #2212 )
2020-01-01 11:14:31 -08:00
sciencewhiz
f14fe434a1
Add (Old) qualifier to old subsystem ( #2211 )
2019-12-31 23:00:35 -06:00
Prateek Machiraju
e874ba9313
Add Color classes for use with AddressableLED ( #2127 )
...
Both floating point and 8-bit integer classes are included, as well as a wide selection of color constants.
Co-authored-by: Austin Shalit <austinshalit@gmail.com >
v2020.1.1
v2020.1.1-beta-5
2019-12-30 00:01:20 -06:00
Peter Johnson
96348e835a
Fix C++ SendableRegistry::AddChild() ( #2207 )
...
Add a Sendable* overload so pointers to sendable objects work appropriately.
Otherwise an AddLW(this) in a child (which is a Sendable*) could be a
different pointer than a void* to the same object.
For example:
AnalogInput constructor calls AddLW(this)
AnalogPotentiometer constructor calls AddChild(analog input pointer)
Also add handling for the child object moving (if it's Sendable).
2019-12-29 23:37:14 -06:00
Oblarg
d91796f8d2
fix clang-format version number ( #2206 )
2019-12-29 21:31:26 -06:00
Peter Johnson
9abce8eb06
Fix subsystem LiveWindow usage ( #2202 )
2019-12-29 21:28:38 -06:00
Peter Johnson
8b4508ad53
Use default path for networktables.ini in simulation ( #2205 )
2019-12-29 18:55:02 -06:00
Oblarg
5b7dd186d2
Add templates for new commands for vscode plugin ( #2016 )
2019-12-29 15:02:49 -06:00
Peter Johnson
6ea13ea8f3
ntcore: Add support for local-only operation ( #2204 )
...
StartLocal() causes future calls to StartServer() or StartClient() to have
no effect. StopLocal() re-enables these calls.
2019-12-29 14:56:41 -06:00
Oblarg
44bcf7fb4d
Java examples: use non-static imports for constants ( #2191 )
2019-12-29 14:55:49 -06:00
Oblarg
c7a1dfc0bc
Add SlewRateLimiter class ( #2192 )
...
This is extremely useful for implementing various "ramping" functions
(such as voltage ramps, setpoint ramps, etc). Usage is straightforward;
it behaves like all of our other filter classes. C++ version is unit-safe.
2019-12-29 13:36:28 -06:00
Peter Johnson
a12bb447e4
Fail cmake build if python3 generate_numbers.py fails ( #2203 )
2019-12-29 13:12:00 -06:00
Declan Freeman-Gleason
c4bd54ef44
Add JNI binding to suppress driver station error/warning messages ( #2200 )
...
This is to allow suppressing an ugly stack trace/error message in a unit test in #2197 . It doesn't support the full HALSIM_SetSendError callback stuff (i.e. you can only suppress, not intercept, stack traces with this).
2019-12-27 21:11:26 -06:00
Austin Shalit
f9a11cce5e
Remove -no-module-directories flag from javadoc build ( #2201 )
2019-12-27 10:19:49 -06:00
Peter Johnson
6008671c30
Report WPILib version as part of usage reporting ( #2199 )
2019-12-26 22:34:10 -06:00
Peter Johnson
7b952d599d
Add usage reporting for many new things ( #2184 )
...
- new CommandScheduler
- kinematics and odometry classes
- new PIDController
- ProfiledPIDController
- TrapezoidProfile (reported in Constraints class)
Also update instances.txt to match latest NI version.
One side effect is that a couple of classes are no longer constexpr.
2019-12-25 00:42:14 -06:00
Peter Johnson
93cdf68694
Add Constants.cpp for MecanumControllerCommand example ( #2196 )
2019-12-24 16:19:02 -06:00
Peter Johnson
0c6f24562f
Fix bug in ULEB128 decoding ( #2195 )
2019-12-24 14:12:42 -06:00
Thad House
bdc1cab013
Add support for configuring SPI Auto Stall Config ( #2193 )
2019-12-24 12:52:58 -06:00
Prateek Machiraju
3259cffc63
Add transform methods to Trajectory ( #2187 )
2019-12-23 13:16:30 -06:00
Oblarg
67b59f2b31
Minor improvements/fixes to new command framework ( #2186 )
2019-12-23 01:09:25 -06:00
sciencewhiz
1ce24a7a2f
Add 2020 speed controllers ( #2188 )
...
Add CTRE TalonFX (PWMTalonFX)
Add Playing with Fusion Venom (PWMVenom)
2019-12-22 13:51:43 -06:00
Prateek Machiraju
635882a9f7
Add getter for initial pose in Trajectory ( #2180 )
2019-12-21 06:57:39 -08:00
Thad House
71a22861eb
Use ManagedStatic for CameraServer ( #2174 )
2019-12-20 14:20:38 -08:00
Thad House
9cb69c5b46
Add a way to pass in a preconstructed value to ManagedStatic ( #2175 )
...
A lot of our cases don't need the lazy construction, but do need manual destruction.
2019-12-20 14:06:22 -08:00
Thad House
5e08bb28f8
Add docs and lifecycle tasks for faster dev builds ( #2182 )
2019-12-20 13:48:26 -08:00
Oblarg
ea4d1a39e1
Update characterization values to match real robot ( #2183 )
...
This is in preparation for an end-to-end trajectory tutorial example.
Co-Authored-By: Dalton Smith <gamefollower26@gmail.com >
2019-12-20 13:46:13 -08:00
Prateek Machiraju
31b588d961
Fix ArmFeedforward Javadocs ( #2176 )
2019-12-15 14:34:18 -08:00
Thad House
0b80d566ad
Use ChipObject HMB function for LED ( #2173 )
...
It's fixed in v9 and up.
2019-12-14 21:15:32 -08:00
Peter Johnson
f8294e689b
Sim GUI: Add a bit of spacing to the analog inputs ( #2170 )
...
This helps make it clear they are separate controls.
2019-12-14 10:49:01 -08:00
Peter Johnson
b78f115fcf
Work around VS2019 16.4.0 bugs ( #2171 )
...
Work around frontend bug in scoped_lock and code generation bug in reverse_iterator in gtest.
See https://github.com/google/googletest/pull/2635
2019-12-14 10:48:19 -08:00
sciencewhiz
b468c51251
Change AddressableLED example to use consistent PWM port ( #2168 )
2019-12-11 15:39:36 -08:00
Prateek Machiraju
023c088290
Add toString() to relevant kinematics classes ( #2160 )
2019-12-09 21:35:43 -08:00
Thad House
8a11d13a39
Fix C++ DutyCycleEncoder int constructor ( #2166 )
2019-12-09 21:35:00 -08:00
Claudius Tewari
daa81c64a7
Minor javadoc fix in SwerveDriveKinematicsConstraint ( #2167 )
2019-12-09 21:34:32 -08:00
Peter Johnson
e20d96ea4e
Use __has_include for WPILib.h ( #2164 )
...
Now that commands and cameraserver libraries are no longer direct dependencies,
it's necessary to check for their presence.
v2020.1.1-beta-4
2019-12-07 21:39:58 -08:00
Thad House
a76d006a07
Update native-utils to 2020.7.2 ( #2161 )
...
Fixes a bug where source directories were being added to the header search path
2019-12-07 17:18:50 -08:00
Thad House
24c031d692
Increase SPI auto byte count to allow 32 bytes to be sent ( #2163 )
...
The FPGA now supports 32 bytes.
2019-12-07 17:18:25 -08:00
Thad House
6b4eecf5fe
Add hidden functions to get the SPI system and SPI DMA ( #2162 )
...
With the addition of stall configuration, its not very clear how it works, and seems like it would be different
per use. So adding ways to manually get them, so the functionality can be figured out how to be used.
2019-12-07 17:16:14 -08:00
Oblarg
ccdd0fbdb2
Add TrapezoidProfile external PID examples ( #2131 )
2019-12-07 13:37:54 -08:00
Tyler Veness
5c6b8a0f45
Replace std::is_pod_v with std::is_standard_layout_v ( #2159 )
...
The former is deprecated in C++20.
2019-12-07 13:34:52 -08:00
Thad House
67d2fed685
Add DutyCycleEncoder channel constructor ( #2158 )
...
Avoids extra boilerplate at user level.
2019-12-06 20:58:04 -08:00
Thad House
d8f11eb149
Hardcode channels for LSB weight ( #2153 )
...
Avoids a mutex and a lookup.
2019-12-06 20:56:40 -08:00
Thad House
b2ae75acd8
Add way to disable "no extensions found" message ( #2134 )
...
We want it enabled by default, but there have been requests for a way to disable it.
2019-12-06 20:55:36 -08:00
Austin Shalit
4f951789fe
Build testbench tests online inorder to improve speed ( #2144 )
...
* Attempt to build testbench tests online inorder to improve speed
* Fix contianer reference
* Start to remove jenkins shell script
* Change job names
* Remove sshpass
* Remove teststand code
* Copy test results back
* Fix build by using athena container
* Fail if any command fails
* Remove jenkins test script
* Remove name argument
* Fix param count
* Add build display name
* Fix scp to copy into dir
* Update display names
* Update stage name
* Fix test results scp
* Create local test report dir
* Remove commented out old code
* Remove force pseudo-terminal allocation
* Remove extra variables
* Update readme
* Remove old test runs
* Update license header
2019-12-06 17:46:29 -05:00
Austin Shalit
005c4c5beb
Try catch around task dependencies to fix loading in editor ( #2156 )
2019-12-06 11:46:21 -08:00
Tyler Veness
34f6b3f4c0
Fix C++ RamseteCommand param doxygen ( #2157 )
2019-12-05 23:54:32 -08:00
Oblarg
f7a93713fa
Fix up templated TrapezoidProfile classes ( #2151 )
...
* Fix two-phase name lookup bug
* Fix param in ProfiledPIDCommand constructor overload
* Fix ProfiledPIDCommand/Controller
2019-12-04 20:40:37 -08:00
Tyler Veness
8c2ff94d70
Rename MathUtils to MathUtil for consistency with other util classes ( #2155 )
2019-12-04 20:39:12 -08:00