Merge branch 'main' of https://git.demerso.net/pls5618/2024/robot
This commit is contained in:
commit
3080e9f6f6
@ -75,7 +75,7 @@ public class RobotContainer {
|
|||||||
.withPosition(7,0);
|
.withPosition(7,0);
|
||||||
|
|
||||||
dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream")
|
dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream")
|
||||||
.withSize(4, 4)
|
.withSize(4, 3)
|
||||||
.withPosition(3, 0);
|
.withPosition(3, 0);
|
||||||
|
|
||||||
CameraServer.startAutomaticCapture();
|
CameraServer.startAutomaticCapture();
|
||||||
@ -108,8 +108,8 @@ public class RobotContainer {
|
|||||||
,grimpeur));
|
,grimpeur));
|
||||||
|
|
||||||
dashboard.add("autochooser",autoChooser)
|
dashboard.add("autochooser",autoChooser)
|
||||||
.withSize(2,1)
|
.withSize(1,1)
|
||||||
.withPosition(0,1);
|
.withPosition(2,2);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void configureBindings() {}
|
private void configureBindings() {}
|
||||||
|
@ -20,7 +20,7 @@ public class Accumulateur extends SubsystemBase {
|
|||||||
private GenericEntry vitesse =
|
private GenericEntry vitesse =
|
||||||
dashboard.add("vitesseacc", 0.5)
|
dashboard.add("vitesseacc", 0.5)
|
||||||
.withSize(1, 1)
|
.withSize(1, 1)
|
||||||
.withPosition(2, 2)
|
.withPosition(0, 0)
|
||||||
.getEntry();
|
.getEntry();
|
||||||
final WPI_TalonSRX Moteuracc2 = new WPI_TalonSRX(Constants.Moteuracc2);
|
final WPI_TalonSRX Moteuracc2 = new WPI_TalonSRX(Constants.Moteuracc2);
|
||||||
final WPI_TalonSRX Moteuracc = new WPI_TalonSRX(Constants.Moteuracc);
|
final WPI_TalonSRX Moteuracc = new WPI_TalonSRX(Constants.Moteuracc);
|
||||||
@ -34,7 +34,7 @@ public class Accumulateur extends SubsystemBase {
|
|||||||
|
|
||||||
dashboard.addBoolean("limitacc", this::limitswitch)
|
dashboard.addBoolean("limitacc", this::limitswitch)
|
||||||
.withSize(1, 1)
|
.withSize(1, 1)
|
||||||
.withPosition(2, 0);
|
.withPosition(0, 1);
|
||||||
}
|
}
|
||||||
public void Accumuler(double vitesse){
|
public void Accumuler(double vitesse){
|
||||||
Moteuracc.set(-vitesse);
|
Moteuracc.set(-vitesse);
|
||||||
|
@ -23,10 +23,10 @@ public class Guideur extends SubsystemBase {
|
|||||||
public Guideur() {
|
public Guideur() {
|
||||||
dashboard.addBoolean("limitguideurhaut", guideurhaut::get)
|
dashboard.addBoolean("limitguideurhaut", guideurhaut::get)
|
||||||
.withSize(1,1)
|
.withSize(1,1)
|
||||||
.withPosition(0,0);
|
.withPosition(1,1);
|
||||||
dashboard.addBoolean("limitguideurbas", guideurbas::get)
|
dashboard.addBoolean("limitguideurbas", guideurbas::get)
|
||||||
.withSize(1,1)
|
.withSize(1,1)
|
||||||
.withPosition(1,0);
|
.withPosition(2,1);
|
||||||
}
|
}
|
||||||
public void guider(double vitesse){
|
public void guider(double vitesse){
|
||||||
guideur.set(vitesse);
|
guideur.set(vitesse);
|
||||||
|
@ -12,7 +12,6 @@ import edu.wpi.first.units.Measure;
|
|||||||
import edu.wpi.first.units.MutableMeasure;
|
import edu.wpi.first.units.MutableMeasure;
|
||||||
import edu.wpi.first.units.Velocity;
|
import edu.wpi.first.units.Velocity;
|
||||||
import edu.wpi.first.units.Voltage;
|
import edu.wpi.first.units.Voltage;
|
||||||
import edu.wpi.first.wpilibj.RobotController;
|
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
|
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
|
||||||
import edu.wpi.first.wpilibj2.command.Command;
|
import edu.wpi.first.wpilibj2.command.Command;
|
||||||
@ -29,12 +28,12 @@ public class Lanceur extends SubsystemBase {
|
|||||||
private GenericEntry vitesse =
|
private GenericEntry vitesse =
|
||||||
dashboard.add("vitesse", 0.8)
|
dashboard.add("vitesse", 0.8)
|
||||||
.withSize(1, 1)
|
.withSize(1, 1)
|
||||||
.withPosition(2,1)
|
.withPosition(2,0)
|
||||||
.getEntry();
|
.getEntry();
|
||||||
private GenericEntry vitesseamp =
|
private GenericEntry vitesseamp =
|
||||||
dashboard.add("vitesseamp", 0.1)
|
dashboard.add("vitesseamp", 0.1)
|
||||||
.withSize(1, 1)
|
.withSize(1, 1)
|
||||||
.withPosition(2,3)
|
.withPosition(1,0)
|
||||||
.getEntry();
|
.getEntry();
|
||||||
public Lanceur() {
|
public Lanceur() {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user