mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user