TrapezoidProfile: Make units public (#2342)

This commit is contained in:
Dustin Spicuzza
2020-02-11 00:44:21 -05:00
committed by GitHub
parent 0f313fb9ab
commit 5b3facc63b

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. */
@@ -43,6 +43,7 @@ namespace frc {
*/
template <class Distance>
class TrapezoidProfile {
public:
using Distance_t = units::unit_t<Distance>;
using Velocity =
units::compound_unit<Distance, units::inverse<units::seconds>>;
@@ -51,7 +52,6 @@ class TrapezoidProfile {
units::compound_unit<Velocity, units::inverse<units::seconds>>;
using Acceleration_t = units::unit_t<Acceleration>;
public:
class Constraints {
public:
Constraints() {