From 0da169dd8423753b8c135b31f4f398a095d045ee Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Wed, 2 Nov 2022 22:54:32 -0700 Subject: [PATCH] [wpimath] Remove template argument from ElevatorFeedforward (#4554) --- .../main/native/include/frc/controller/ElevatorFeedforward.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpimath/src/main/native/include/frc/controller/ElevatorFeedforward.h b/wpimath/src/main/native/include/frc/controller/ElevatorFeedforward.h index e07c26b21a..bbe7720686 100644 --- a/wpimath/src/main/native/include/frc/controller/ElevatorFeedforward.h +++ b/wpimath/src/main/native/include/frc/controller/ElevatorFeedforward.h @@ -6,6 +6,7 @@ #include +#include "units/length.h" #include "units/time.h" #include "units/voltage.h" @@ -14,9 +15,9 @@ namespace frc { * A helper class that computes feedforward outputs for a simple elevator * (modeled as a motor acting against the force of gravity). */ -template class ElevatorFeedforward { public: + using Distance = units::meters; using Velocity = units::compound_unit>; using Acceleration =