mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21: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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include "wpi/framework/TimedRobot.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
namespace wpi {
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user