mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fix incomplete .styleguide (#2113)
Also clean up other .styleguides. Fixes #2111.
This commit is contained in:
committed by
Peter Johnson
parent
ffa4b907c0
commit
9a8067465c
@@ -34,7 +34,7 @@ class ProfiledPIDSubsystem : public SubsystemBase {
|
||||
* @param controller the ProfiledPIDController to use
|
||||
*/
|
||||
explicit ProfiledPIDSubsystem(frc::ProfiledPIDController<Distance> controller)
|
||||
: m_controller{controller} {}
|
||||
: m_controller{controller} {}
|
||||
|
||||
void Periodic() override {
|
||||
if (m_enabled) {
|
||||
@@ -79,18 +79,16 @@ class ProfiledPIDSubsystem : public SubsystemBase {
|
||||
* Disables the PID control. Sets output to zero.
|
||||
*/
|
||||
virtual void Disable() {
|
||||
UseOutput(0, State{Distance_t(0), Velocity_t(0)});
|
||||
m_enabled = false;
|
||||
}
|
||||
UseOutput(0, State{Distance_t(0), Velocity_t(0)});
|
||||
m_enabled = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ProfiledPIDController.
|
||||
*
|
||||
* @return The controller.
|
||||
*/
|
||||
frc::ProfiledPIDController<Distance>& GetController() {
|
||||
return m_controller;
|
||||
}
|
||||
frc::ProfiledPIDController<Distance>& GetController() { return m_controller; }
|
||||
|
||||
protected:
|
||||
frc::ProfiledPIDController<Distance> m_controller;
|
||||
|
||||
Reference in New Issue
Block a user