Fix typos with cspell (#6972)

This commit is contained in:
Gold856
2024-08-17 10:44:34 -04:00
committed by GitHub
parent 780b1e0391
commit b12b83aa89
83 changed files with 151 additions and 152 deletions

View File

@@ -41,7 +41,7 @@ public class Robot extends TimedRobot {
private final PWMSparkMax m_flywheelMotor = new PWMSparkMax(kMotorPort);
private final Encoder m_encoder = new Encoder(kEncoderAChannel, kEncoderBChannel);
private final BangBangController m_bangBangControler = new BangBangController();
private final BangBangController m_bangBangController = new BangBangController();
// Gains are for example purposes only - must be determined for your own robot!
public static final double kFlywheelKs = 0.0001; // V
@@ -69,8 +69,8 @@ public class Robot extends TimedRobot {
private final EncoderSim m_encoderSim = new EncoderSim(m_encoder);
public Robot() {
// Add bang-bang controler to SmartDashboard and networktables.
SmartDashboard.putData(m_bangBangControler);
// Add bang-bang controller to SmartDashboard and networktables.
SmartDashboard.putData(m_bangBangController);
}
/** Controls flywheel to a set speed (RPM) controlled by a joystick. */
@@ -84,7 +84,7 @@ public class Robot extends TimedRobot {
* Units.rotationsPerMinuteToRadiansPerSecond(kMaxSetpointValue));
// Set setpoint and measurement of the bang-bang controller
double bangOutput = m_bangBangControler.calculate(m_encoder.getRate(), setpoint) * 12.0;
double bangOutput = m_bangBangController.calculate(m_encoder.getRate(), setpoint) * 12.0;
// Controls a motor with the output of the BangBang controller and a
// feedforward. The feedforward is reduced slightly to avoid overspeeding

View File

@@ -18,7 +18,7 @@ import edu.wpi.first.wpilibj.motorcontrol.PWMSparkMax;
*/
public class Robot extends TimedRobot {
private static final double kAngleSetpoint = 0.0;
private static final double kP = 0.005; // propotional turning constant
private static final double kP = 0.005; // proportional turning constant
// gyro calibration constant, may need to be adjusted;
// gyro value of 360 is set to correspond to one full revolution