mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Minor improvements/fixes to new command framework (#2186)
This commit is contained in:
@@ -9,8 +9,10 @@
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
PIDSubsystem::PIDSubsystem(PIDController controller)
|
||||
: m_controller{controller} {}
|
||||
PIDSubsystem::PIDSubsystem(PIDController controller, double initialPosition)
|
||||
: m_controller{controller} {
|
||||
SetSetpoint(initialPosition);
|
||||
}
|
||||
|
||||
void PIDSubsystem::Periodic() {
|
||||
if (m_enabled) {
|
||||
|
||||
Reference in New Issue
Block a user