From b96264f0421ea4ddce0d7b721d995e60db8ab5ad Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Sun, 4 May 2025 00:13:46 -0700 Subject: [PATCH] [examples] Misc fixes for snippets (#7952) --- .../src/main/cpp/snippets/AnalogEncoder/cpp/Robot.cpp | 2 -- .../src/main/cpp/snippets/DutyCycleEncoder/cpp/Robot.cpp | 2 -- wpilibcExamples/src/main/cpp/snippets/Encoder/cpp/Robot.cpp | 3 --- .../src/main/cpp/snippets/EncoderDrive/cpp/Robot.cpp | 2 -- .../src/main/cpp/snippets/EncoderHoming/cpp/Robot.cpp | 2 -- .../edu/wpi/first/wpilibj/snippets/analogtrigger/Robot.java | 2 +- 6 files changed, 1 insertion(+), 12 deletions(-) diff --git a/wpilibcExamples/src/main/cpp/snippets/AnalogEncoder/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/snippets/AnalogEncoder/cpp/Robot.cpp index 171d19933e..d9bf670336 100644 --- a/wpilibcExamples/src/main/cpp/snippets/AnalogEncoder/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/snippets/AnalogEncoder/cpp/Robot.cpp @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -#include - #include #include diff --git a/wpilibcExamples/src/main/cpp/snippets/DutyCycleEncoder/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/snippets/DutyCycleEncoder/cpp/Robot.cpp index 25593ec933..8655354ced 100644 --- a/wpilibcExamples/src/main/cpp/snippets/DutyCycleEncoder/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/snippets/DutyCycleEncoder/cpp/Robot.cpp @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -#include - #include #include diff --git a/wpilibcExamples/src/main/cpp/snippets/Encoder/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/snippets/Encoder/cpp/Robot.cpp index 7f736d5c1b..deff20a1e6 100644 --- a/wpilibcExamples/src/main/cpp/snippets/Encoder/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/snippets/Encoder/cpp/Robot.cpp @@ -2,11 +2,8 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -#include - #include #include -#include #include /** diff --git a/wpilibcExamples/src/main/cpp/snippets/EncoderDrive/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/snippets/EncoderDrive/cpp/Robot.cpp index 8d888e46a8..d21a7f063d 100644 --- a/wpilibcExamples/src/main/cpp/snippets/EncoderDrive/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/snippets/EncoderDrive/cpp/Robot.cpp @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -#include - #include #include #include diff --git a/wpilibcExamples/src/main/cpp/snippets/EncoderHoming/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/snippets/EncoderHoming/cpp/Robot.cpp index 23eaf5a9a1..a18914d545 100644 --- a/wpilibcExamples/src/main/cpp/snippets/EncoderHoming/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/snippets/EncoderHoming/cpp/Robot.cpp @@ -2,8 +2,6 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -#include - #include #include #include diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/snippets/analogtrigger/Robot.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/snippets/analogtrigger/Robot.java index 893db80acd..0a732a8afb 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/snippets/analogtrigger/Robot.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/snippets/analogtrigger/Robot.java @@ -15,7 +15,7 @@ import edu.wpi.first.wpilibj.TimedRobot; public class Robot extends TimedRobot { // Initializes an AnalogTrigger on port 0 AnalogTrigger m_trigger0 = new AnalogTrigger(0); - // Initializes an AnalogInput on port 1 and enables 2-bit oversampling + // Initializes an AnalogInput on port 1 AnalogInput m_input = new AnalogInput(1); // Initializes an AnalogTrigger using the above input