Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import org.wpilib.command2.Command.InterruptionBehavior;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.event.EventLoop;
import org.wpilib.framework.RobotBase;
import org.wpilib.framework.RobotState;
import org.wpilib.framework.TimedRobot;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.opmode.RobotBase;
import org.wpilib.opmode.RobotState;
import org.wpilib.opmode.TimedRobot;
import org.wpilib.system.Watchdog;
import org.wpilib.util.sendable.Sendable;
import org.wpilib.util.sendable.SendableBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/Subsystem.hpp"
#include "wpi/framework/RobotBase.hpp"
#include "wpi/framework/RobotState.hpp"
#include "wpi/framework/TimedRobot.hpp"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/nt/IntegerArrayTopic.hpp"
#include "wpi/nt/StringArrayTopic.hpp"
#include "wpi/opmode/RobotBase.hpp"
#include "wpi/opmode/RobotState.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/util/DenseMap.hpp"
#include "wpi/util/SmallVector.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.wpilib.command3.button.CommandGenericHID;
import org.wpilib.command3.proto.SchedulerProto;
import org.wpilib.event.EventLoop;
import org.wpilib.opmode.TimedRobot;
import org.wpilib.framework.TimedRobot;
import org.wpilib.system.RobotController;
import org.wpilib.util.ErrorMessages;
import org.wpilib.util.protobuf.ProtobufSerializable;
Expand Down
2 changes: 1 addition & 1 deletion developerRobot/src/main/java/frc/robot/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package frc.robot;

import org.wpilib.opmode.RobotBase;
import org.wpilib.framework.RobotBase;

public final class Main {
private Main() {}
Expand Down
2 changes: 1 addition & 1 deletion developerRobot/src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package frc.robot;

import org.wpilib.opmode.TimedRobot;
import org.wpilib.framework.TimedRobot;

public class Robot extends TimedRobot {
/**
Expand Down
2 changes: 1 addition & 1 deletion developerRobot/src/main/native/cpp/Robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

class Robot : public wpi::TimedRobot {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private void processEpilogue(

// Used to check for a main robot class
var robotBaseClass =
processingEnv.getElementUtils().getTypeElement("org.wpilib.opmode.TimedRobot").asType();
processingEnv.getElementUtils().getTypeElement("org.wpilib.framework.TimedRobot").asType();

boolean validFields = validateFields(annotatedElements);
boolean validMethods = validateMethods(annotatedElements);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* Generates the {@code Epilogue} file used as the main entry point to logging with Epilogue in a
* robot program. {@code Epilogue} has instances of every generated logger class, a {@link
* EpilogueConfiguration config} object, and (if the main robot class inherits from {@link
* org.wpilib.opmode.TimedRobot TimedRobot}) a {@code bind()} method to automatically add a periodic
* logging call to the robot.
* org.wpilib.framework.TimedRobot TimedRobot}) a {@code bind()} method to automatically add a
* periodic logging call to the robot.
*/
public class EpilogueGenerator {
private final ProcessingEnvironment m_processingEnv;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void robotBase() {
package org.wpilib.epilogue;

@Logged
class Example extends org.wpilib.opmode.RobotBase {
class Example extends org.wpilib.framework.RobotBase {
@Override
public void startCompetition() {}
@Override
Expand Down Expand Up @@ -128,7 +128,7 @@ void timedRobot() {
package org.wpilib.epilogue;

@Logged
class Example extends org.wpilib.opmode.TimedRobot {
class Example extends org.wpilib.framework.TimedRobot {
}
""";

Expand Down Expand Up @@ -210,10 +210,10 @@ void multipleRobots() {
package org.wpilib.epilogue;

@Logged
class AlphaBot extends org.wpilib.opmode.TimedRobot { }
class AlphaBot extends org.wpilib.framework.TimedRobot { }

@Logged
class BetaBot extends org.wpilib.opmode.TimedRobot { }
class BetaBot extends org.wpilib.framework.TimedRobot { }
""";

String expected =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cpp/opmode/RobotState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cpp/opmode/TimedRobot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cpp/opmode/TimesliceRobot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cpp/system/DataLogManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cpp/system/Filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cppcs/RobotBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <functional>

#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/framework/TimedRobot.hpp"
#include "wpi/units/time.hpp"

namespace wpi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
10 changes: 5 additions & 5 deletions wpilibc/src/main/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/test/native/cpp/TimedRobotTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/test/native/cpp/TimesliceRobotTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

#include <array>

#include <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/led/AddressableLED.hpp>
#include <wpi/hardware/led/LEDPattern.hpp>
#include <wpi/opmode/TimedRobot.hpp>

class Robot : public wpi::TimedRobot {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include <wpi/apriltag/AprilTagDetector.hpp>
#include <wpi/apriltag/AprilTagPoseEstimator.hpp>
#include <wpi/cameraserver/CameraServer.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include <wpi/math/geometry/Transform3d.hpp>
#include <wpi/nt/IntegerArrayTopic.hpp>
#include <wpi/nt/NetworkTableInstance.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/units/angle.hpp>
#include <wpi/units/length.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include <wpi/drive/DifferentialDrive.hpp>
#include <wpi/driverstation/Joystick.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/opmode/TimedRobot.hpp>

/**
* This is a demo program showing the use of the DifferentialDrive class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include <wpi/drive/DifferentialDrive.hpp>
#include <wpi/driverstation/XboxController.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/opmode/TimedRobot.hpp>

/**
* This is a demo program showing the use of the DifferentialDrive class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include <wpi/driverstation/Joystick.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/framework/TimedRobot.hpp>

#include "subsystems/Arm.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/power/PowerDistribution.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/smartdashboard/SmartDashboard.hpp>

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// the WPILib BSD license file in the root directory of this project.

#include <wpi/driverstation/XboxController.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include <wpi/math/filter/SlewRateLimiter.hpp>
#include <wpi/opmode/TimedRobot.hpp>

#include "Drivetrain.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// the WPILib BSD license file in the root directory of this project.

#include <wpi/driverstation/XboxController.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include <wpi/math/filter/SlewRateLimiter.hpp>
#include <wpi/opmode/TimedRobot.hpp>

#include "Drivetrain.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#include <array>

#include <wpi/framework/TimedRobot.hpp>
#include <wpi/hardware/discrete/DigitalOutput.hpp>
#include <wpi/opmode/TimedRobot.hpp>

/**
* This is a sample program demonstrating how to communicate to a light
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <optional>

#include <wpi/commands2/Command.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/framework/TimedRobot.hpp>

#include "RobotContainer.hpp"

Expand Down
Loading
Loading