Fix missing typename and return type (#2115)

This commit is contained in:
Oblarg
2019-11-21 00:46:33 -05:00
committed by Peter Johnson
parent 5f85457a97
commit 3d1ca856b2
4 changed files with 7 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ class ProfiledPIDCommand
using Velocity =
units::compound_unit<Distance, units::inverse<units::seconds>>;
using Velocity_t = units::unit_t<Velocity>;
using State = frc::TrapezoidProfile<Distance>::State;
using State = typename frc::TrapezoidProfile<Distance>::State;
public:
/**
@@ -139,7 +139,7 @@ class ProfiledPIDCommand
protected:
frc::ProfiledPIDController<Distance> m_controller;
std::function<units::unit_t<Distance>> m_measurement;
std::function<Distance_t> m_measurement;
std::function<State()> m_goal;
std::function<void(double, State)> m_useOutput;
};