[examples] Misc fixes for snippets (#7952)

This commit is contained in:
sciencewhiz
2025-05-04 00:13:46 -07:00
committed by GitHub
parent a15152712f
commit b96264f042
6 changed files with 1 additions and 12 deletions

View File

@@ -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 <numbers>
#include <frc/AnalogEncoder.h>
#include <frc/TimedRobot.h>

View File

@@ -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 <numbers>
#include <frc/DutyCycleEncoder.h>
#include <frc/TimedRobot.h>

View File

@@ -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 <numbers>
#include <frc/Encoder.h>
#include <frc/TimedRobot.h>
#include <frc/smartdashboard/SmartDashboard.h>
#include <wpi/deprecated.h>
/**

View File

@@ -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 <numbers>
#include <frc/Encoder.h>
#include <frc/TimedRobot.h>
#include <frc/drive/DifferentialDrive.h>

View File

@@ -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 <numbers>
#include <frc/DigitalInput.h>
#include <frc/Encoder.h>
#include <frc/TimedRobot.h>

View File

@@ -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