Skip to content

Commit 5d5e58a

Browse files
committed
Replace overvelocitying
1 parent 7ad80d9 commit 5d5e58a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

wpilibcExamples/src/main/cpp/examples/FlywheelBangBangController/cpp/Robot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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));

wpilibjExamples/src/main/java/org/wpilib/examples/flywheelbangbangcontroller/Robot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

wpimath/src/main/java/org/wpilib/math/controller/BangBangController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
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
*/

wpimath/src/main/native/include/wpi/math/controller/BangBangController.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)