Move robot base classes from opmode to framework (#8344)

Having these in opmode will be confusing to users when opmodes are added.
This commit is contained in:
Peter Johnson
2025-11-08 15:08:38 -08:00
committed by GitHub
parent aeedfa588c
commit 18efd1e534
275 changed files with 285 additions and 285 deletions

View File

@@ -2,10 +2,10 @@
// 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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/accelerometer/ADXL345_I2C.hpp>
#include <wpi/hardware/bus/I2C.hpp>
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* ADXL346, 362 Accelerometer snippets for frc-docs.

View File

@@ -2,8 +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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/smartdashboard/SmartDashboard.hpp>
#include <wpi/units/acceleration.hpp>

View File

@@ -2,9 +2,9 @@
// 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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/math/filter/LinearFilter.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/smartdashboard/SmartDashboard.hpp>
#include <wpi/units/acceleration.hpp>

View File

@@ -2,9 +2,9 @@
// 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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/accelerometer/AnalogAccelerometer.hpp>
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogAccelerometer snippets for frc-docs.

View File

@@ -2,8 +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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/rotation/AnalogEncoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogEncoder snippets for frc-docs.

View File

@@ -2,8 +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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogInput snippets for frc-docs.

View File

@@ -2,9 +2,9 @@
// 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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/hardware/rotation/AnalogPotentiometer.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogPotentiometer snippets for frc-docs.

View File

@@ -2,8 +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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Digital Input snippets for frc-docs.

View File

@@ -2,8 +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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/rotation/DutyCycleEncoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* DutyCycleEncoder snippets for frc-docs.

View File

@@ -2,8 +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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/util/deprecated.hpp>
/**

View File

@@ -3,9 +3,9 @@
// the WPILib BSD license file in the root directory of this project.
#include <wpi/drive/DifferentialDrive.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/motor/Spark.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Encoder drive to distance snippets for frc-docs.

View File

@@ -2,10 +2,10 @@
// 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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/hardware/motor/Spark.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Encoder mechanism homing snippets for frc-docs.

View File

@@ -3,10 +3,10 @@
// the WPILib BSD license file in the root directory of this project.
#include <wpi/driverstation/Joystick.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/hardware/motor/PWMVictorSPX.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Limit Switch snippets for frc-docs.

View File

@@ -2,9 +2,9 @@
// 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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/math/geometry/Rotation2d.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/units/acceleration.hpp>
#include <wpi/units/angle.hpp>

View File

@@ -2,11 +2,11 @@
// 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 <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/math/controller/ProfiledPIDController.hpp>
#include <wpi/math/controller/SimpleMotorFeedforward.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/units/acceleration.hpp>
#include <wpi/units/length.hpp>
#include <wpi/units/velocity.hpp>