This commit is contained in:
samuel desharnais 2024-02-08 18:35:50 -05:00
parent ce99144cd2
commit 6f12bd08ae
2 changed files with 10 additions and 4 deletions

View File

@ -56,6 +56,7 @@ public class GrimpeurDroit extends Command {
@Override
public void end(boolean interrupted) {
grimpeur.droit(0);
grimpeur.pistonouvre();
}
// Returns true when the command should end.

View File

@ -15,11 +15,16 @@ public class LED extends SubsystemBase {
AddressableLEDBuffer ledBuffer = new AddressableLEDBuffer(60);
public void led(){
led.setData(ledBuffer);
led.start();
}
led.start();}
public void couleur(int R, int G,int B){
ledBuffer.setRGB(0, R, G, B);
for (int i = 0; i < ledBuffer.getLength(); i++) {
// Sets the specified LED to the RGB values for red
ledBuffer.setRGB(i, 255, 0, 0);}
}
@Override
public void periodic() {
// This method will be called once per scheduler run