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

@@ -11,13 +11,13 @@
#include <fmt/format.h>
#include "wpi/framework/RobotBase.hpp"
#include "wpi/hal/Ports.h"
#include "wpi/hal/REVPH.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hardware/pneumatic/Compressor.hpp"
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/hardware/pneumatic/Solenoid.hpp"
#include "wpi/opmode/RobotBase.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/NullDeleter.hpp"
#include "wpi/util/SensorUtil.hpp"

View File

@@ -2,7 +2,7 @@
// 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/opmode/IterativeRobotBase.hpp"
#include "wpi/framework/IterativeRobotBase.hpp"
#include "wpi/driverstation/DSControlWord.hpp"
#include "wpi/driverstation/DriverStation.hpp"

View File

@@ -2,7 +2,7 @@
// 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/opmode/RobotState.hpp"
#include "wpi/framework/RobotState.hpp"
#include "wpi/driverstation/DriverStation.hpp"

View File

@@ -2,7 +2,7 @@
// 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/opmode/TimedRobot.hpp"
#include "wpi/framework/TimedRobot.hpp"
#include <stdint.h>

View File

@@ -2,7 +2,7 @@
// 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/opmode/TimesliceRobot.hpp"
#include "wpi/framework/TimesliceRobot.hpp"
#include "wpi/system/Errors.hpp"

View File

@@ -16,9 +16,9 @@
#include "wpi/datalog/DataLogBackgroundWriter.hpp"
#include "wpi/datalog/FileLogger.hpp"
#include "wpi/driverstation/DriverStation.hpp"
#include "wpi/framework/RobotBase.hpp"
#include "wpi/hal/UsageReporting.h"
#include "wpi/nt/NetworkTableInstance.hpp"
#include "wpi/opmode/RobotBase.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/system/Filesystem.hpp"
#include "wpi/system/RobotController.hpp"

View File

@@ -6,7 +6,7 @@
#include <string>
#include "wpi/opmode/RobotBase.hpp"
#include "wpi/framework/RobotBase.hpp"
#include "wpi/util/fs.hpp"
std::string wpi::filesystem::GetLaunchDirectory() {

View File

@@ -2,7 +2,7 @@
// 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/opmode/RobotBase.hpp"
#include "wpi/framework/RobotBase.hpp"
#ifdef __FRC_SYSTEMCORE__
#include <dlfcn.h>

View File

@@ -4,7 +4,7 @@
#pragma once
#include "wpi/opmode/RobotBase.hpp"
#include "wpi/framework/RobotBase.hpp"
#include "wpi/system/Watchdog.hpp"
#include "wpi/units/time.hpp"

View File

@@ -9,9 +9,9 @@
#include <utility>
#include <vector>
#include "wpi/framework/IterativeRobotBase.hpp"
#include "wpi/hal/Notifier.h"
#include "wpi/hal/Types.h"
#include "wpi/opmode/IterativeRobotBase.hpp"
#include "wpi/system/RobotController.hpp"
#include "wpi/units/frequency.hpp"
#include "wpi/units/math.hpp"

View File

@@ -6,7 +6,7 @@
#include <functional>
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/framework/TimedRobot.hpp"
#include "wpi/units/time.hpp"
namespace wpi {

View File

@@ -6,9 +6,9 @@
#include <string_view>
#include "wpi/framework/RobotBase.hpp"
#include "wpi/nt/NetworkTableInstance.hpp"
#include "wpi/nt/StringTopic.hpp"
#include "wpi/opmode/RobotBase.hpp"
namespace wpi::sim {

View File

@@ -119,7 +119,7 @@ ExpansionHubServo = "wpi/ExpansionHubServo.hpp"
Filesystem = "rpy/Filesystem.h"
Gamepad = "wpi/driverstation/Gamepad.hpp"
I2C = "wpi/hardware/bus/I2C.hpp"
IterativeRobotBase = "wpi/opmode/IterativeRobotBase.hpp"
IterativeRobotBase = "wpi/framework/IterativeRobotBase.hpp"
Joystick = "wpi/driverstation/Joystick.hpp"
LEDPattern = "wpi/hardware/led/LEDPattern.hpp"
MotorSafety = "wpi/hardware/motor/MotorSafety.hpp"
@@ -134,9 +134,9 @@ PneumaticsControlModule = "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
PneumaticsModuleType = "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
PowerDistribution = "wpi/hardware/power/PowerDistribution.hpp"
Preferences = "wpi/util/Preferences.hpp"
RobotBase = "wpi/opmode/RobotBase.hpp"
RobotBase = "wpi/framework/RobotBase.hpp"
RobotController = "wpi/system/RobotController.hpp"
RobotState = "wpi/opmode/RobotState.hpp"
RobotState = "wpi/framework/RobotState.hpp"
RuntimeType = "wpi/system/RuntimeType.hpp"
SensorUtil = "wpi/util/SensorUtil.hpp"
SerialPort = "wpi/hardware/bus/SerialPort.hpp"
@@ -145,9 +145,9 @@ Solenoid = "wpi/hardware/pneumatic/Solenoid.hpp"
StadiaController = "wpi/driverstation/StadiaController.hpp"
SystemServer = "wpi/system/SystemServer.hpp"
Threads = "wpi/system/Threads.hpp"
TimedRobot = "wpi/opmode/TimedRobot.hpp"
TimedRobot = "wpi/framework/TimedRobot.hpp"
Timer = "wpi/system/Timer.hpp"
TimesliceRobot = "wpi/opmode/TimesliceRobot.hpp"
TimesliceRobot = "wpi/framework/TimesliceRobot.hpp"
Tracer = "wpi/system/Tracer.hpp"
Watchdog = "wpi/system/Watchdog.hpp"
XboxController = "wpi/driverstation/XboxController.hpp"

View File

@@ -2,7 +2,7 @@
// 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/opmode/TimedRobot.hpp" // NOLINT(build/include_order)
#include "wpi/framework/TimedRobot.hpp" // NOLINT(build/include_order)
#include <stdint.h>

View File

@@ -2,7 +2,7 @@
// 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/opmode/TimesliceRobot.hpp" // NOLINT(build/include_order)
#include "wpi/framework/TimesliceRobot.hpp" // NOLINT(build/include_order)
#include <stdint.h>

View File

@@ -10,7 +10,7 @@
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/driverstation/DriverStation.hpp"
#include "wpi/driverstation/Joystick.hpp"
#include "wpi/opmode/RobotState.hpp"
#include "wpi/framework/RobotState.hpp"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/SimHooks.hpp"