mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Fix missing typename and return type (#2115)
This commit is contained in:
@@ -32,7 +32,7 @@ class ProfiledPIDCommand
|
|||||||
using Velocity =
|
using Velocity =
|
||||||
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
||||||
using Velocity_t = units::unit_t<Velocity>;
|
using Velocity_t = units::unit_t<Velocity>;
|
||||||
using State = frc::TrapezoidProfile<Distance>::State;
|
using State = typename frc::TrapezoidProfile<Distance>::State;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
@@ -139,7 +139,7 @@ class ProfiledPIDCommand
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
frc::ProfiledPIDController<Distance> m_controller;
|
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<State()> m_goal;
|
||||||
std::function<void(double, State)> m_useOutput;
|
std::function<void(double, State)> m_useOutput;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class ProfiledPIDSubsystem : public SubsystemBase {
|
|||||||
using Velocity =
|
using Velocity =
|
||||||
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
||||||
using Velocity_t = units::unit_t<Velocity>;
|
using Velocity_t = units::unit_t<Velocity>;
|
||||||
using State = frc::TrapezoidProfile<Distance>::State;
|
using State = typename frc::TrapezoidProfile<Distance>::State;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
@@ -65,7 +65,7 @@ class ProfiledPIDSubsystem : public SubsystemBase {
|
|||||||
*
|
*
|
||||||
* @return the measurement of the process variable
|
* @return the measurement of the process variable
|
||||||
*/
|
*/
|
||||||
virtual units::meter_t GetMeasurement() = 0;
|
virtual Distance_t GetMeasurement() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables the PID control. Resets the controller.
|
* Enables the PID control. Resets the controller.
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class TrapezoidProfileCommand
|
|||||||
using Velocity =
|
using Velocity =
|
||||||
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
||||||
using Velocity_t = units::unit_t<Velocity>;
|
using Velocity_t = units::unit_t<Velocity>;
|
||||||
using State = frc::TrapezoidProfile<Distance>::State;
|
using State = typename frc::TrapezoidProfile<Distance>::State;
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates a new TrapezoidProfileCommand that will execute the given
|
* Creates a new TrapezoidProfileCommand that will execute the given
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ class TrapezoidProfileSubsystem : public SubsystemBase {
|
|||||||
using Velocity =
|
using Velocity =
|
||||||
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
units::compound_unit<Distance, units::inverse<units::seconds>>;
|
||||||
using Velocity_t = units::unit_t<Velocity>;
|
using Velocity_t = units::unit_t<Velocity>;
|
||||||
using State = frc::TrapezoidProfile<Distance>::State;
|
using State = typename frc::TrapezoidProfile<Distance>::State;
|
||||||
using Constraints = frc::TrapezoidProfile<Distance>::Constraints;
|
using Constraints = typename frc::TrapezoidProfile<Distance>::Constraints;
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates a new TrapezoidProfileSubsystem.
|
* Creates a new TrapezoidProfileSubsystem.
|
||||||
|
|||||||
Reference in New Issue
Block a user