mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user