Make SlewRateLimiter unit declarations public (#2445)

This commit is contained in:
Prateek Machiraju
2020-03-23 01:55:10 -04:00
committed by GitHub
parent 029a94dd33
commit 2ee3bfaa25

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -25,11 +25,11 @@ namespace frc {
*/
template <class Unit>
class SlewRateLimiter {
public:
using Unit_t = units::unit_t<Unit>;
using Rate = units::compound_unit<Unit, units::inverse<units::seconds>>;
using Rate_t = units::unit_t<Rate>;
public:
/**
* Creates a new SlewRateLimiter with the given rate limit and initial value.
*