[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

@@ -14,7 +14,7 @@
*/
class CloseClaw : public frc2::CommandHelper<frc2::CommandBase, CloseClaw> {
public:
explicit CloseClaw(Claw* claw);
explicit CloseClaw(Claw& claw);
void Initialize() override;
bool IsFinished() override;
void End(bool interrupted) override;