From ffbc6687646790057ea020dee627402c85f92c6c Mon Sep 17 00:00:00 2001 From: David Vo Date: Sun, 10 Mar 2024 21:55:59 +1100 Subject: [PATCH] shooter: Use NeutralOut control signal for 0 speed (#176) This is clearer and more explicit than a 0V output. --- components/shooter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/shooter.py b/components/shooter.py index d28a1749..6e827d3b 100644 --- a/components/shooter.py +++ b/components/shooter.py @@ -4,7 +4,7 @@ from rev import CANSparkMax from ids import SparkMaxIds, TalonIds, DioChannels -from phoenix6.controls import VelocityVoltage, Follower, VoltageOut +from phoenix6.controls import VelocityVoltage, Follower, NeutralOut from phoenix6.hardware import TalonFX from phoenix6.configs import ( MotorOutputConfigs, @@ -200,6 +200,6 @@ def execute(self) -> None: self.inclinator.set(inclinator_speed) if self.desired_flywheel_speed == 0: - self.flywheel_left.set_control(VoltageOut(0)) + self.flywheel_left.set_control(NeutralOut()) else: self.flywheel_left.set_control(VelocityVoltage(self.desired_flywheel_speed))