判断联盟颜色

This commit is contained in:
OnDYCLaptop
2026-03-03 17:54:50 +08:00
parent cae3810ef5
commit a36e226f0d
3 changed files with 32 additions and 2 deletions
@@ -48,14 +48,14 @@ import frc.robot.Constants.RobotStatus;
return new InstantCommand(() -> {
intaker.IntakerDownNonStop(); // 吸球机构下降
}, intaker).withTimeout(0.5).andThen(new InstantCommand(() -> {
intaker.stopIntakerotater();; // 吸球机构保持当前位置
intaker.stopIntakerotater();; // 停止旋转
}, intaker));
}
public static Command intaker_up(IntakerSubsystem intaker) {
return new InstantCommand(() -> {
intaker.IntakerUpNonStop(); // 吸球机构上升
}, intaker).withTimeout(0.5).andThen(new InstantCommand(() -> {
intaker.stopIntakerotater();; // 吸球机构保持当前位置
intaker.stopIntakerotater();; // 停止旋转
}, intaker));
}