[wpimath] Remove template argument from ElevatorFeedforward (#4554)

This commit is contained in:
Tyler Veness
2022-11-02 22:54:32 -07:00
committed by GitHub
parent 2416827c25
commit 0da169dd84

View File

@@ -6,6 +6,7 @@
#include <wpi/MathExtras.h>
#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 Distance>
class ElevatorFeedforward {
public:
using Distance = units::meters;
using Velocity =
units::compound_unit<Distance, units::inverse<units::seconds>>;
using Acceleration =