xvcb
This commit is contained in:
parent
aabe9b40ae
commit
c6146e2a3b
@ -7,6 +7,8 @@ import java.util.Map;
|
||||
|
||||
import edu.wpi.first.cameraserver.CameraServer;
|
||||
import edu.wpi.first.networktables.GenericEntry;
|
||||
import edu.wpi.first.wpilibj.shuffleboard.BuiltInLayouts;
|
||||
import edu.wpi.first.wpilibj.shuffleboard.BuiltInWidgets;
|
||||
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
||||
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout;
|
||||
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
|
||||
@ -70,11 +72,12 @@ String enhaut = "en bas";
|
||||
String aumilieux = "au milieux";
|
||||
String enbas = "en bas";
|
||||
String nulpart = "nul part";
|
||||
ShuffleboardLayout layoutauto = Shuffleboard.getTab("teb").getLayout("auto");
|
||||
GenericEntry autobalance = layoutauto.add("choix balance",true).getEntry();
|
||||
GenericEntry autosortir = layoutauto.add("choix sorit",false).getEntry();
|
||||
ShuffleboardLayout layoutauto = Shuffleboard.getTab("teb").getLayout("auto",BuiltInLayouts.kList)
|
||||
.withSize(2,2).withProperties(Map.of("Label position","LEFT"));
|
||||
GenericEntry autobalance = layoutauto.add("choix balance",true).withWidget(BuiltInWidgets.kToggleSwitch).getEntry();
|
||||
GenericEntry autosortir = layoutauto.add("choix sorit",false).withWidget(BuiltInWidgets.kToggleSwitch).getEntry();
|
||||
public RobotContainer() {
|
||||
chooser.setDefaultOption(enhaut, enhaut);
|
||||
chooser.addOption(enhaut, enhaut);
|
||||
chooser.addOption(enbas, enbas);
|
||||
chooser.addOption(aumilieux, aumilieux);
|
||||
chooser.addOption(nulpart, nulpart);
|
||||
|
Loading…
x
Reference in New Issue
Block a user