diff --git a/wpilibcExamples/src/main/cpp/examples/HatchbotInlined/cpp/RobotContainer.cpp b/wpilibcExamples/src/main/cpp/examples/HatchbotInlined/cpp/RobotContainer.cpp index f8719c4cdd..90865ac7a4 100644 --- a/wpilibcExamples/src/main/cpp/examples/HatchbotInlined/cpp/RobotContainer.cpp +++ b/wpilibcExamples/src/main/cpp/examples/HatchbotInlined/cpp/RobotContainer.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2019-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. */ @@ -14,7 +14,7 @@ RobotContainer::RobotContainer() { // Initialize all of your commands and subsystems here // 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 diff --git a/wpilibcExamples/src/main/cpp/examples/HatchbotTraditional/cpp/RobotContainer.cpp b/wpilibcExamples/src/main/cpp/examples/HatchbotTraditional/cpp/RobotContainer.cpp index 9eb917807c..d4199ef4fa 100644 --- a/wpilibcExamples/src/main/cpp/examples/HatchbotTraditional/cpp/RobotContainer.cpp +++ b/wpilibcExamples/src/main/cpp/examples/HatchbotTraditional/cpp/RobotContainer.cpp @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2019-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. */ @@ -19,7 +19,7 @@ RobotContainer::RobotContainer() { // Initialize all of your commands and subsystems here // 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 diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbotinlined/RobotContainer.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbotinlined/RobotContainer.java index 225012357b..d49fba45b1 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbotinlined/RobotContainer.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbotinlined/RobotContainer.java @@ -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 diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbottraditional/RobotContainer.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbottraditional/RobotContainer.java index 3e2dc825d3..0784ddec94 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbottraditional/RobotContainer.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbottraditional/RobotContainer.java @@ -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