mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Minor improvements/fixes to new command framework (#2186)
This commit is contained in:
@@ -24,8 +24,9 @@ class PIDSubsystem : public SubsystemBase {
|
||||
* Creates a new PIDSubsystem.
|
||||
*
|
||||
* @param controller the PIDController to use
|
||||
* @param initialPosition the initial setpoint of the subsystem
|
||||
*/
|
||||
explicit PIDSubsystem(PIDController controller);
|
||||
explicit PIDSubsystem(PIDController controller, double initialPosition = 0);
|
||||
|
||||
void Periodic() override;
|
||||
|
||||
@@ -62,7 +63,7 @@ class PIDSubsystem : public SubsystemBase {
|
||||
|
||||
protected:
|
||||
PIDController m_controller;
|
||||
bool m_enabled;
|
||||
bool m_enabled{false};
|
||||
|
||||
/**
|
||||
* Returns the measurement of the process variable used by the PIDController.
|
||||
|
||||
Reference in New Issue
Block a user