tuyhkj
This commit is contained in:
parent
977cbef11e
commit
df71095e4d
@ -22,7 +22,9 @@ public class Avancer extends CommandBase {
|
||||
|
||||
// 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
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -31,7 +31,6 @@ public class Drive extends SubsystemBase {
|
||||
}
|
||||
}
|
||||
public void reset(){
|
||||
|
||||
}
|
||||
@Override
|
||||
public void periodic() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user