[wpilib] Rename MotorController setDutyCycle() to setThrottle() (#8720)

Fixes #8716.
This commit is contained in:
Tyler Veness
2026-04-09 22:28:01 -07:00
committed by GitHub
parent a4e035ba64
commit b6849a8da3
160 changed files with 659 additions and 706 deletions

View File

@@ -37,7 +37,7 @@ public class Koors40 extends PWMMotorController {
setBoundsMicroseconds(2004, 1520, 1500, 1480, 997);
m_pwm.setOutputPeriod(20);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "Koors40");
}

View File

@@ -37,7 +37,7 @@ public class PWMSparkFlex extends PWMMotorController {
setBoundsMicroseconds(2003, 1550, 1500, 1460, 999);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "RevSparkFlexPWM");
}

View File

@@ -37,7 +37,7 @@ public class PWMSparkMax extends PWMMotorController {
setBoundsMicroseconds(2003, 1550, 1500, 1460, 999);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "RevSparkMaxPWM");
}

View File

@@ -37,7 +37,7 @@ public class PWMTalonFX extends PWMMotorController {
setBoundsMicroseconds(2004, 1520, 1500, 1480, 997);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "TalonFX");
}

View File

@@ -37,7 +37,7 @@ public class PWMTalonSRX extends PWMMotorController {
setBoundsMicroseconds(2004, 1520, 1500, 1480, 997);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "PWMTalonSRX");
}

View File

@@ -37,7 +37,7 @@ public class PWMVenom extends PWMMotorController {
setBoundsMicroseconds(2004, 1520, 1500, 1480, 997);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "FusionVenom");
}

View File

@@ -37,7 +37,7 @@ public class PWMVictorSPX extends PWMMotorController {
setBoundsMicroseconds(2004, 1520, 1500, 1480, 997);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "PWMVictorSPX");
}

View File

@@ -37,7 +37,7 @@ public class Spark extends PWMMotorController {
setBoundsMicroseconds(2003, 1550, 1500, 1460, 999);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "RevSPARK");
}

View File

@@ -37,7 +37,7 @@ public class SparkMini extends PWMMotorController {
setBoundsMicroseconds(2500, 1510, 1500, 1490, 500);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "RevSPARK");
}

View File

@@ -37,7 +37,7 @@ public class Talon extends PWMMotorController {
setBoundsMicroseconds(2037, 1539, 1513, 1487, 989);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "Talon");
}

View File

@@ -37,7 +37,7 @@ public class VictorSP extends PWMMotorController {
setBoundsMicroseconds(2004, 1520, 1500, 1480, 997);
m_pwm.setOutputPeriod(5);
setDutyCycle(0.0);
setThrottle(0.0);
HAL.reportUsage("IO", getChannel(), "VictorSP");
}