[wpilibcExamples] Make GearsBot use idiomatic C++ (#3711)

Replace pointer constructor arguments with references, and const qualify
getters where possible.

Also remove redundant simulation P gain.

Fixes #1146.
This commit is contained in:
Tyler Veness
2021-11-09 20:11:50 -08:00
committed by GitHub
parent 42d3a50aa2
commit 3be0c1217a
30 changed files with 58 additions and 66 deletions

View File

@@ -51,6 +51,5 @@ class Wrist : public frc2::PIDSubsystem {
frc::AnalogPotentiometer m_pot{3}; // Defaults to degrees
#endif
static constexpr double kP_real = 1;
static constexpr double kP_simulation = 0.05;
static constexpr double kP = 1;
};