mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Fix various typos (#8769)
This commit is contained in:
@@ -162,7 +162,7 @@ public class ExpansionHubMotor implements AutoCloseable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the voltage to run the motor at. This value will be continously scaled to match the input
|
||||
* Sets the voltage to run the motor at. This value will be continuously scaled to match the input
|
||||
* voltage.
|
||||
*
|
||||
* @param voltage The voltage to drive the motor at
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ExpansionHubPidConstants {
|
||||
+ motorNumber
|
||||
+ "/pid/"
|
||||
+ pidType
|
||||
+ "/continousMaximum")
|
||||
+ "/continuousMaximum")
|
||||
.publish(options);
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ public class ExpansionHubPidConstants {
|
||||
m_continuousPublisher.set(true);
|
||||
}
|
||||
|
||||
/** Disable continous input mode. */
|
||||
/** Disable continuous input mode. */
|
||||
public void disableContinuousInput() {
|
||||
m_continuousPublisher.set(false);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class ExpansionHubServo implements AutoCloseable {
|
||||
private final int m_channel;
|
||||
|
||||
private boolean m_reversed;
|
||||
private boolean m_continousMode;
|
||||
private boolean m_continuousMode;
|
||||
|
||||
private final IntegerPublisher m_pulseWidthPublisher;
|
||||
private final IntegerPublisher m_framePeriodPublisher;
|
||||
@@ -92,7 +92,7 @@ public class ExpansionHubServo implements AutoCloseable {
|
||||
* @param value Position from 0.0 to 1.0 (-1 to 1 in CR mode).
|
||||
*/
|
||||
public void set(double value) {
|
||||
if (m_continousMode) {
|
||||
if (m_continuousMode) {
|
||||
value = Math.clamp(value, -1.0, 1.0);
|
||||
value = (value + 1.0) / 2.0;
|
||||
}
|
||||
@@ -223,8 +223,8 @@ public class ExpansionHubServo implements AutoCloseable {
|
||||
*
|
||||
* @param enable True to enable continuous rotation mode, false to disable
|
||||
*/
|
||||
public void setContinousRotationMode(boolean enable) {
|
||||
m_continousMode = enable;
|
||||
public void setContinuousRotationMode(boolean enable) {
|
||||
m_continuousMode = enable;
|
||||
}
|
||||
|
||||
/** Closes a servo so another instance can be constructed. */
|
||||
|
||||
@@ -148,7 +148,7 @@ public abstract class PWMMotorController extends MotorSafety
|
||||
* @param maxPwm maximum
|
||||
* @param deadbandMaxPwm deadband max
|
||||
* @param centerPwm center
|
||||
* @param deadbandMinPwm deadmand min
|
||||
* @param deadbandMinPwm deadband min
|
||||
* @param minPwm minimum
|
||||
*/
|
||||
protected final void setBoundsMicroseconds(
|
||||
|
||||
Reference in New Issue
Block a user