File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
wpilibcExamples/src/main/cpp/examples/FlywheelBangBangController/cpp
wpilibjExamples/src/main/java/org/wpilib/examples/flywheelbangbangcontroller
java/org/wpilib/math/controller
native/include/wpi/math/controller Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class Robot : public wpi::TimedRobot {
3434 12_V;
3535
3636 // Controls a motor with the output of the BangBang controller and a
37- // feedforward. The feedforward is reduced slightly to avoid overvelocitying
37+ // feedforward. The feedforward is reduced slightly to avoid overspeeding
3838 // the shooter.
3939 m_flywheelMotor.SetVoltage (bangOutput +
4040 0.9 * m_feedforward.Calculate (setpoint));
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public void teleopPeriodic() {
8484 double bangOutput = m_bangBangController .calculate (m_encoder .getRate (), setpoint ) * 12.0 ;
8585
8686 // Controls a motor with the output of the BangBang controller and a
87- // feedforward. The feedforward is reduced slightly to avoid overvelocitying
87+ // feedforward. The feedforward is reduced slightly to avoid overspeeding
8888 // the shooter.
8989 m_flywheelMotor .setVoltage (bangOutput + 0.9 * m_feedforward .calculate (setpoint ));
9090 }
Original file line number Diff line number Diff line change 1515 * for velocity control of high-inertia mechanisms, and poorly on most other things.
1616 *
1717 * <p>Note that this is an *asymmetric* bang-bang controller - it will not exert any control effort
18- * in the reverse direction (e.g. it won't try to slow down an over-velocitying shooter wheel). This
19- * asymmetry is *extremely important.* Bang-bang control is extremely simple, but also potentially
18+ * in the reverse direction (e.g. it won't try to slow down an overspeeding shooter wheel). This
19+ * asymmetry is *extremely important*. Bang-bang control is extremely simple, but also potentially
2020 * hazardous. Always ensure that your motor controllers are set to "coast" before attempting to
2121 * control them with a bang-bang controller.
2222 */
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ namespace wpi::math {
2323 *
2424 * <p>Note that this is an *asymmetric* bang-bang controller - it will not exert
2525 * any control effort in the reverse direction (e.g. it won't try to slow down
26- * an over-velocitying shooter wheel). This asymmetry is *extremely important.*
26+ * an overspeeding shooter wheel). This asymmetry is *extremely important*.
2727 * Bang-bang control is extremely simple, but also potentially hazardous. Always
2828 * ensure that your motor controllers are set to "coast" before attempting to
2929 * control them with a bang-bang controller.
You can’t perform that action at this time.
0 commit comments