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
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
5e08bb28f8
Add docs and lifecycle tasks for faster dev builds ( #2182 )
2019-12-20 13:48:26 -08:00
Thad House
8a11d13a39
Fix C++ DutyCycleEncoder int constructor ( #2166 )
2019-12-09 21:35:00 -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.
2019-12-07 21:39:58 -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
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
Thad House
d003ec2dc9
Update to 2020v9 image ( #2154 )
...
- Fix VISA include and FPGA header
- Fix missing VISA lib from executables
2019-12-04 20:38:43 -08:00
Matt
6c8f6cf479
Fix bug in cubic and quintic hermetic spline generation ( #2139 )
...
Add documentation for spline derivatives and explicitly zero matrices.
2019-12-01 21:29:52 -08:00
Oblarg
9a515c80f8
Template C++ LinearFilter to work with unit types ( #2142 )
2019-11-30 23:12:02 -08:00
Prateek Machiraju
5b73c17f25
Remove encoder velocities methods in DifferentialDriveOdometry ( #2147 )
...
It doesn't make sense to continue to provide a less accurate method of performing odometry
when a more accurate method using distances exists.
This also removes the need to pass DifferentialDriveKinematics to the constructor.
2019-11-30 23:10:29 -08:00
Prateek Machiraju
2622c6c291
Add default values for b and zeta in RamseteController ( #2145 )
...
Values b=2.0 and zeta=0.7 have been well-tested to produce desirable results.
2019-11-29 21:16:01 -08:00
Austin Shalit
f66ae59992
Add HSV helpers to AddressableLED ( #2135 )
...
Also change the setLED() method to setRGB() for consistency and clarity.
Add rainbow example to demonstrate HSV usage.
2019-11-29 15:16:57 -08:00
Oblarg
5e97c81d80
Add MedianFilter class for moving-window median ( #2136 )
...
This kind of filter is extremely useful for signals that are susceptible to sudden
outliers - ultrasonics, 1-D LIDAR, and results from vision processing are all
good use-cases.
This also modifies the existing ultrasonic examples accordingly.
2019-11-29 15:13:40 -08:00
Tyler Veness
f79b7a058a
Remove unnecessary constructor arg for LinearFilter's circular buffers ( #2140 )
...
They are initialized in LinearFilter's constructor, so the default is
never used.
2019-11-28 23:27:20 -08:00
Peter Johnson
70102a60b7
SendableRegistry.foreachLiveWindow: Prevent concurrent modification ( #2129 )
...
Copy the internal map values into an array before iterating.
In C++, change to recursive mutex as well.
2019-11-25 21:47:06 -08:00
Peter Johnson
39be812b2e
Fix C++ ArmFeedforward ( #2120 )
2019-11-22 06:31:32 -08:00
Oblarg
21e957ee42
Add DifferentialDrive voltage constraint ( #2075 )
2019-11-21 21:43:02 -08:00
Modelmat
3df44c874d
Remove Rotation2d.h wpi/math include ( #2117 )
2019-11-21 19:54:29 -08:00
CTT
a58dbec8aa
Add holonomic follower examples ( #2052 )
2019-11-21 19:52:56 -08:00
Tyler Veness
ffa4b907c0
Fix C++ floating point literal formatting ( #2114 )
...
Found formatting errors with this regex
"([^a-z0-9\.]\.[0-9]|[^a-z0-9\.][0-9]\.[^a-z0-9\.])" and ignored false
positives.
Fixes #2112 .
2019-11-20 21:48:15 -08:00
Austin Shalit
5f85457a97
Add usage reporting for AddressableLED ( #2108 )
2019-11-20 20:13:39 -08:00
Oblarg
fa85fbfc1c
Template C++ TrapezoidProfile and ProfiledPIDController on units ( #2109 )
2019-11-20 20:11:46 -08:00
Thad House
5443fdabc1
Directly construct PWM port from HAL, avoid wpilib PWM object ( #2106 )
2019-11-20 14:48:14 -08:00
Austin Shalit
c0e36df9d8
Standardize on PWMVictorSPX in examples ( #2104 )
2019-11-19 21:48:22 -08:00
Prateek Machiraju
45201d15fc
Add encoder distance overload to DifferentialDriveOdometry ( #2096 )
...
Also force encoders to be reset to zero on pose reset.
2019-11-19 09:56:34 -08:00
Tyler Veness
845aba33fe
Make feedforward classes constexpr ( #2103 )
...
ArmFeedforward::Calculate() can't be made constexpr because std::cos()
and thus units::math::cos() is not constexpr.
Fixes #2101 .
2019-11-19 06:47:59 -08:00
Thad House
500c43fb84
Add examples for DMA, DutyCycle, DutyCycleEncoder and AddressableLED ( #2100 )
2019-11-18 22:12:17 -08:00
Thad House
8ed2059074
Add AddressableLED ( #2092 )
2019-11-17 16:39:38 -08:00
Prateek Machiraju
841ef91c0f
Use gyro angle instead of robot angle for odometry ( #2081 )
...
The odometry classes previously took in the robot angle as an argument, meaning that users had to take care of offsetting the gyro themselves to accurately report the robot angle. This change will make it so that users will not have to worry about resetting gyros and adding offsets themselves, as this will be handled by the odometry classes.
2019-11-15 17:34:10 -08:00
Thad House
82b2170feb
Add DMA support to HAL and WPILibC ( #2080 )
2019-11-14 22:52:34 -08:00
Thad House
8280b7e3af
Add DutyCycleEncoder and AnalogEncoder ( #2040 )
2019-11-14 22:51:33 -08:00
Thad House
b7bc1ea745
Update to 2020v6 image ( #2078 )
2019-11-13 21:35:52 -08:00
Thad House
708009cd20
Update to gradle 6.0 ( #2074 )
2019-11-12 17:14:04 -08:00
Thad House
3cce61b89f
Add SmartDashboard::GetEntry function in C++ ( #2064 )
...
Existed in Java already.
2019-11-12 17:11:32 -08:00
CTT
565e1f3e79
Fix spelling in MecanumDriveOdometry docs ( #2072 )
2019-11-11 23:25:09 -08:00
Peter Johnson
3e049e02f0
Add name to HAL Notifier
2019-11-11 22:03:29 -08:00
Oblarg
e3dd1c5d77
Fix small bug in SplineHelper ( #2061 )
...
Also add comments for clamped cubic solution.
2019-11-10 22:52:24 -08:00
Oblarg
7dc7c71b58
Add feedforward components ( #2045 )
...
Add helper classes for computing feedforwards with parameters supplied by the characterization tool.
2019-11-09 20:16:42 -08:00
sciencewhiz
94843adb8f
Standardize documentation of Speed Controllers bounds ( #2043 )
...
Some were in constructor docs, some in init function docs, and some
inline in code. Move them all to class docs.
2019-11-09 09:14:53 -08:00
Thad House
9bcff37b93
Add HAL specific version of wpi_setError ( #2055 )
...
Cleans up error writing, and allows fewer headers to be included in many of the wpilibc cpp files.
This removes all usages of the hal/HAL.h header.
2019-11-08 22:53:20 -08:00
Thad House
ff39a96cee
Make DigitalOutput a DigitalSource ( #2054 )
...
It's perfectly safe to use as a DigitalSource, and can enable some cool tricks.
2019-11-07 20:03:43 -08:00
Thad House
5ccad2e8a4
Fix frc2::Timer returning incorrect timestamp values ( #2057 )
2019-11-07 20:02:27 -08:00
Thad House
384d00f9e6
Fix various duty cycle bugs ( #2047 )
2019-11-06 14:05:25 -08:00
Peter Johnson
7508aada93
Add ability to end startCompetition() main loop ( #2032 )
...
This is useful for both cleanly exiting from simulation and for unit testing
at a framework level.
This change required removing move constructor/assignment from IterativeRobot.
2019-11-05 21:33:09 -08:00
carbotaniuman
ed30d5d40e
Add JSON support for Trajectories ( #2025 )
2019-11-02 11:35:03 -07:00
Thad House
1d695a1660
Add FPGA Duty Cycle support ( #1987 )
2019-11-01 23:41:30 -07:00