gpt的超级状态机
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Copyright (c) FIRST and other WPILib contributors.
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
// 版权所有 (c) FIRST 和其他 WPILib 贡献者。
|
||||
// 本项目为开源软件;你可以依据项目根目录中的 WPILib BSD license 文件
|
||||
// 修改和/或分享本代码。
|
||||
|
||||
package frc.robot;
|
||||
import edu.wpi.first.math.geometry.Pose2d;
|
||||
@@ -30,9 +30,13 @@ public class Robot extends TimedRobot {
|
||||
@Override
|
||||
public void disabledInit() {
|
||||
System.out.println("Robot disabledInit called");
|
||||
// 进入 disabled 时强制所有重构后的机构回到安全状态,
|
||||
// 即使上一周期还有手动或自动请求也不能继续动作。
|
||||
m_robotContainer.superstructure.requestIdle();
|
||||
m_robotContainer.shooterSubsystem.stopAll();
|
||||
// m_robotContainer.climberSubsystem.stopAll();
|
||||
m_robotContainer.IntakerSubsystem.stopAll();
|
||||
m_robotContainer.intakeRollerSubsystem.stop();
|
||||
m_robotContainer.intakeRotaterSubsystem.stop();
|
||||
m_robotContainer.conveyorSubsystem.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user