rstdfghjbknl;
This commit is contained in:
parent
07ce25107a
commit
af2f0bb61b
@ -5,18 +5,12 @@ public class Constants {
|
|||||||
public static int avantgauche = 1;
|
public static int avantgauche = 1;
|
||||||
public static int arrieredroit = 2;
|
public static int arrieredroit = 2;
|
||||||
public static int arrieregauche = 3;
|
public static int arrieregauche = 3;
|
||||||
<<<<<<< HEAD
|
|
||||||
public static int BrasTelescopique = 4;
|
public static int BrasTelescopique = 4;
|
||||||
public static int pivot = 5;
|
public static int pivot = 5;
|
||||||
|
|
||||||
//moteur
|
//moteur
|
||||||
public static int leverGratte = 0;
|
public static int leverGratte = 0;
|
||||||
public static int baisserGratte = 1;
|
public static int baisserGratte = 1;
|
||||||
=======
|
|
||||||
|
|
||||||
public static int leverGratte = 7;
|
|
||||||
public static int baisserGratte = 6;
|
|
||||||
>>>>>>> Dash
|
|
||||||
|
|
||||||
// pneumatique
|
// pneumatique
|
||||||
public static int pistonpinceouvre = 0;
|
public static int pistonpinceouvre = 0;
|
||||||
|
@ -7,25 +7,18 @@ package frc.robot.subsystems;
|
|||||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||||
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
|
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
|
||||||
import edu.wpi.first.wpilibj.DigitalInput;
|
import edu.wpi.first.wpilibj.DigitalInput;
|
||||||
<<<<<<< HEAD
|
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
||||||
=======
|
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
|
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout;
|
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout;
|
||||||
>>>>>>> Dash
|
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
|
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
|
||||||
import frc.robot.Constants;
|
import frc.robot.Constants;
|
||||||
|
|
||||||
public class Gratte extends SubsystemBase {
|
public class Gratte extends SubsystemBase {
|
||||||
<<<<<<< HEAD
|
|
||||||
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
|
||||||
=======
|
|
||||||
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
||||||
ShuffleboardLayout limitswitchgratte = Shuffleboard.getTab("teb")
|
ShuffleboardLayout limitswitchgratte = Shuffleboard.getTab("teb")
|
||||||
.getLayout("limitswitchsgratte", BuiltInLayouts.kList)
|
.getLayout("limitswitchsgratte", BuiltInLayouts.kList)
|
||||||
.withSize(2, 2);
|
.withSize(2, 2);
|
||||||
>>>>>>> Dash
|
|
||||||
private WPI_TalonSRX Gratted = new WPI_TalonSRX(Constants.leverGratte);
|
private WPI_TalonSRX Gratted = new WPI_TalonSRX(Constants.leverGratte);
|
||||||
private WPI_TalonSRX Gratteg = new WPI_TalonSRX(Constants.baisserGratte);
|
private WPI_TalonSRX Gratteg = new WPI_TalonSRX(Constants.baisserGratte);
|
||||||
private DigitalInput limithd = new DigitalInput(Constants.limithd);
|
private DigitalInput limithd = new DigitalInput(Constants.limithd);
|
||||||
@ -59,16 +52,13 @@ ShuffleboardLayout limitswitchgratte = Shuffleboard.getTab("teb")
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void periodic() {
|
public void periodic() {
|
||||||
<<<<<<< HEAD
|
|
||||||
teb .add("limithd", 0.1);
|
teb .add("limithd", 0.1);
|
||||||
teb .add("limithg", 0.1);
|
teb .add("limithg", 0.1);
|
||||||
teb .add("limitbd", 0.1);
|
teb .add("limitbd", 0.1);
|
||||||
teb .add("limitbg", 0.1);
|
teb .add("limitbg", 0.1);
|
||||||
=======
|
|
||||||
limitswitchgratte.add ("limitbd", 0.1);
|
limitswitchgratte.add ("limitbd", 0.1);
|
||||||
limitswitchgratte.add ("limithg", 0.1);
|
limitswitchgratte.add ("limithg", 0.1);
|
||||||
limitswitchgratte.add ("limithd", 0.1);
|
limitswitchgratte.add ("limithd", 0.1);
|
||||||
limitswitchgratte.add ("limitbg", 0.1);
|
limitswitchgratte.add ("limitbg", 0.1);
|
||||||
>>>>>>> Dash
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,13 +8,10 @@ package frc.robot.subsystems.bras;
|
|||||||
import com.revrobotics.CANSparkMax;
|
import com.revrobotics.CANSparkMax;
|
||||||
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
|
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
import edu.wpi.first.wpilibj.DigitalInput;
|
import edu.wpi.first.wpilibj.DigitalInput;
|
||||||
import edu.wpi.first.wpilibj.DoubleSolenoid;
|
import edu.wpi.first.wpilibj.DoubleSolenoid;
|
||||||
import edu.wpi.first.wpilibj.PneumaticsModuleType;
|
import edu.wpi.first.wpilibj.PneumaticsModuleType;
|
||||||
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
|
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
|
||||||
=======
|
|
||||||
>>>>>>> Dash
|
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
|
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
||||||
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout;
|
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout;
|
||||||
@ -23,18 +20,14 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
|||||||
import frc.robot.Constants;
|
import frc.robot.Constants;
|
||||||
|
|
||||||
public class BrasTelescopique extends SubsystemBase {
|
public class BrasTelescopique extends SubsystemBase {
|
||||||
<<<<<<< HEAD
|
|
||||||
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
||||||
ShuffleboardLayout layout = Shuffleboard.getTab("teb")
|
ShuffleboardLayout layout = Shuffleboard.getTab("teb")
|
||||||
.getLayout("layout", BuiltInLayouts.kList)
|
.getLayout("layout", BuiltInLayouts.kList)
|
||||||
.withSize(2, 2);
|
.withSize(2, 2);
|
||||||
=======
|
|
||||||
|
|
||||||
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
|
||||||
ShuffleboardLayout bras = Shuffleboard.getTab("teb")
|
ShuffleboardLayout bras = Shuffleboard.getTab("teb")
|
||||||
.getLayout("bras", BuiltInLayouts.kList)
|
.getLayout("bras", BuiltInLayouts.kList)
|
||||||
.withSize(2, 2);
|
.withSize(2, 2);
|
||||||
>>>>>>> Dash
|
|
||||||
/** Creates a new BrasTelescopique. */
|
/** Creates a new BrasTelescopique. */
|
||||||
public BrasTelescopique() {}
|
public BrasTelescopique() {}
|
||||||
final CANSparkMax Winch = new CANSparkMax(Constants.BrasTelescopique,MotorType.kBrushless);
|
final CANSparkMax Winch = new CANSparkMax(Constants.BrasTelescopique,MotorType.kBrushless);
|
||||||
@ -60,11 +53,8 @@ ShuffleboardLayout bras = Shuffleboard.getTab("teb")
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void periodic() {
|
public void periodic() {
|
||||||
<<<<<<< HEAD
|
|
||||||
teb .add("photocell",0.1);
|
teb .add("photocell",0.1);
|
||||||
teb .add("winch",0.1);
|
teb .add("winch",0.1);
|
||||||
=======
|
|
||||||
bras.add ("encodeur",0.1);
|
bras.add ("encodeur",0.1);
|
||||||
>>>>>>> Dash
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -14,11 +14,7 @@ import com.revrobotics.CANSparkMax;
|
|||||||
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
|
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
|
||||||
|
|
||||||
public class Pivot extends SubsystemBase {
|
public class Pivot extends SubsystemBase {
|
||||||
<<<<<<< HEAD
|
|
||||||
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
||||||
=======
|
|
||||||
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
|
||||||
>>>>>>> Dash
|
|
||||||
// moteur
|
// moteur
|
||||||
private CANSparkMax pivot = new CANSparkMax(Constants.pivot,MotorType.kBrushless);
|
private CANSparkMax pivot = new CANSparkMax(Constants.pivot,MotorType.kBrushless);
|
||||||
private DigitalInput limitpivot = new DigitalInput(Constants.limitpivot);
|
private DigitalInput limitpivot = new DigitalInput(Constants.limitpivot);
|
||||||
@ -40,12 +36,9 @@ ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void periodic() {
|
public void periodic() {
|
||||||
<<<<<<< HEAD
|
|
||||||
teb .add("encodeur", 0.1);
|
teb .add("encodeur", 0.1);
|
||||||
}
|
}
|
||||||
}
|
{
|
||||||
=======
|
|
||||||
teb.add ("encodeur pivot",0.1);
|
teb.add ("encodeur pivot",0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>>>>>>> Dash
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user