From 5b3facc63bb7896946880ce21c06ed04b73e0cb7 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Tue, 11 Feb 2020 00:44:21 -0500 Subject: [PATCH] TrapezoidProfile: Make units public (#2342) --- .../src/main/native/include/frc/trajectory/TrapezoidProfile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h b/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h index 575088eb35..3d57682773 100644 --- a/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h +++ b/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h @@ -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 TrapezoidProfile { + public: using Distance_t = units::unit_t; using Velocity = units::compound_unit>; @@ -51,7 +52,6 @@ class TrapezoidProfile { units::compound_unit>; using Acceleration_t = units::unit_t; - public: class Constraints { public: Constraints() {