コード例 #1
0
  // Called repeatedly when this Command is scheduled to run
  protected void execute() {
    SmartDashboard.putString("AutoCommand", "Gyro");

    if (m_angle > 0) {
      PIDChassis.PIDDriveEncoderLeft();
    } else {
      PIDChassis.PIDDriveEncoderRight();
    }
  }
コード例 #2
0
 // Called when another command which requires one or more of the same
 // subsystems is scheduled to run
 protected void interrupted() {
   PIDChassis.driveForward(0);
 }
コード例 #3
0
 // Called once after isFinished returns true
 protected void end() {
   PIDChassis.driveForward(0);
 }