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