mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpimath] Take finite difference stencil points by const ref (#7238)
This commit is contained in:
@@ -187,7 +187,7 @@ class LinearFilter {
|
||||
*/
|
||||
template <int Derivative, int Samples>
|
||||
static LinearFilter<T> FiniteDifference(
|
||||
const wpi::array<int, Samples> stencil, units::second_t period) {
|
||||
const wpi::array<int, Samples>& stencil, units::second_t period) {
|
||||
// See
|
||||
// https://en.wikipedia.org/wiki/Finite_difference_coefficient#Arbitrary_stencil_points
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user