Set a default option for Sendable Chooser in examples (#2361)

This commit is contained in:
sciencewhiz
2020-02-15 09:54:12 -08:00
committed by GitHub
parent 31f4fd70ce
commit a226ad8509
4 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -78,7 +78,7 @@ public class RobotContainer {
m_driverController.getX(GenericHID.Hand.kRight)), m_robotDrive));
// Add commands to the autonomous command chooser
m_chooser.addOption("Simple Auto", m_simpleAuto);
m_chooser.setDefaultOption("Simple Auto", m_simpleAuto);
m_chooser.addOption("Complex Auto", m_complexAuto);
// Put the chooser on the dashboard

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -72,7 +72,7 @@ public class RobotContainer {
() -> m_driverController.getX(GenericHID.Hand.kRight)));
// Add commands to the autonomous command chooser
m_chooser.addOption("Simple Auto", m_simpleAuto);
m_chooser.setDefaultOption("Simple Auto", m_simpleAuto);
m_chooser.addOption("Complex Auto", m_complexAuto);
// Put the chooser on the dashboard