This commit is contained in:
samuel desharnais 2023-11-15 19:15:42 -05:00
parent 977cbef11e
commit df71095e4d
9 changed files with 14 additions and 10 deletions

View File

@ -17,12 +17,14 @@ public class Avancer extends CommandBase {
// Called when the command is initially scheduled.
@Override
public void initialize() {
}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {}
public void execute() {
drive.drive(0.5, 0.2, 0);
}
// Called once the command ends or is interrupted.
@Override

View File

@ -35,7 +35,8 @@ public class Force1 extends CommandBase {
@Override
public void execute() {
lanceur.lancer(force1.getDouble(0));
double vitesse = SmartDashboard.getNumber("Force Lanceur", 100);
double vitesse = (600);
lanceur.lancer(100);
if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant();
accumulateur.tournearriere();

View File

@ -30,7 +30,8 @@ public class Force2 extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double vitesse = SmartDashboard.getNumber("Force Lanceur", 200);
double vitesse = (200);
lanceur.lancer(200);
if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant();
accumulateur.tournearriere();

View File

@ -43,7 +43,8 @@ public class Force3 extends CommandBase {
@Override
public void execute() {
double vitesse = SmartDashboard.getNumber("Force Lanceur", 300);
double vitesse = (300);
lanceur.lancer(300);
if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant();
accumulateur.tournearriere();

View File

@ -37,7 +37,7 @@ public class Force4 extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double vitesse = SmartDashboard.getNumber("Force Lanceur", 400);
double vitesse = (400);
lanceur.lancer(400);
if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant();

View File

@ -37,7 +37,7 @@ public class Force5 extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double vitesse = SmartDashboard.getNumber("Force Lanceur", 500);
double vitesse = (500);
lanceur.lancer(500);
if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant();

View File

@ -38,7 +38,7 @@ public class Force6 extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double vitesse = SmartDashboard.getNumber("Force Lanceur", 600);
double vitesse = (600);
lanceur.lancer(600);
if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant();

View File

@ -37,7 +37,7 @@ public class Force7 extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double vitesse = SmartDashboard.getNumber("Force Lanceur", 700);
double vitesse = (700);
lanceur.lancer(700);
if (lanceur.vitesse() > vitesse ){
accumulateur.tourneavant();

View File

@ -31,7 +31,6 @@ public class Drive extends SubsystemBase {
}
}
public void reset(){
}
@Override
public void periodic() {