Merge branch 'master' of https://git.demerso.net/pls5618/2024/betabot-2024
This commit is contained in:
		| @@ -19,15 +19,22 @@ public class Lancer extends CommandBase { | |||||||
|  |  | ||||||
|   // Called when the command is initially scheduled. |   // Called when the command is initially scheduled. | ||||||
|   @Override |   @Override | ||||||
|   public void initialize() {} |   public void initialize() { | ||||||
|  |  | ||||||
|  |     lanceur.setPID(0, 0, 0); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   // Called every time the scheduler runs while the command is scheduled. |   // Called every time the scheduler runs while the command is scheduled. | ||||||
|   @Override |   @Override | ||||||
|   public void execute() {} |   public void execute() { | ||||||
|  |  | ||||||
|  |     lanceur.lancer(0); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   // Called once the command ends or is interrupted. |   // Called once the command ends or is interrupted. | ||||||
|   @Override |   @Override | ||||||
|   public void end(boolean interrupted) {} |   public void end(boolean interrupted) { | ||||||
|  |     lanceur.lancer(0);  } | ||||||
|  |  | ||||||
|   // Returns true when the command should end. |   // Returns true when the command should end. | ||||||
|   @Override |   @Override | ||||||
|   | |||||||
| @@ -29,8 +29,15 @@ public class Lanceur extends SubsystemBase { | |||||||
|    |    | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     public void stop() { | ||||||
|  |        | ||||||
|  |     } | ||||||
|  |  | ||||||
|   @Override |   @Override | ||||||
|   public void periodic() { |   public void periodic() { | ||||||
|     // This method will be called once per scheduler run |     // This method will be called once per scheduler run | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   public void setPID(double d, double e, int i) { | ||||||
|  |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user