This commit is contained in:
parent
ce99144cd2
commit
6f12bd08ae
@ -56,6 +56,7 @@ public class GrimpeurDroit extends Command {
|
|||||||
@Override
|
@Override
|
||||||
public void end(boolean interrupted) {
|
public void end(boolean interrupted) {
|
||||||
grimpeur.droit(0);
|
grimpeur.droit(0);
|
||||||
|
grimpeur.pistonouvre();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns true when the command should end.
|
// Returns true when the command should end.
|
||||||
|
@ -15,11 +15,16 @@ public class LED extends SubsystemBase {
|
|||||||
AddressableLEDBuffer ledBuffer = new AddressableLEDBuffer(60);
|
AddressableLEDBuffer ledBuffer = new AddressableLEDBuffer(60);
|
||||||
public void led(){
|
public void led(){
|
||||||
led.setData(ledBuffer);
|
led.setData(ledBuffer);
|
||||||
led.start();
|
led.start();}
|
||||||
}
|
|
||||||
public void couleur(int R, int G,int B){
|
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
|
@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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user