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,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.
package org.wpilib.opmode;
package org.wpilib.framework;
import org.wpilib.driverstation.DSControlWord;
import org.wpilib.driverstation.DriverStation;

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.
package org.wpilib.opmode;
package org.wpilib.framework;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.Supplier;

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.
package org.wpilib.opmode;
package org.wpilib.framework;
import org.wpilib.driverstation.DriverStation;

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.
package org.wpilib.opmode;
package org.wpilib.framework;
import static org.wpilib.units.Units.Seconds;

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.
package org.wpilib.opmode;
package org.wpilib.framework;
/**
* TimesliceRobot extends the TimedRobot robot program framework to provide timeslice scheduling of

View File

@@ -7,9 +7,9 @@ package org.wpilib.hardware.motor;
import java.util.LinkedHashSet;
import java.util.Set;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.framework.RobotState;
import org.wpilib.hardware.hal.ControlWord;
import org.wpilib.hardware.hal.DriverStationJNI;
import org.wpilib.opmode.RobotState;
import org.wpilib.system.Timer;
import org.wpilib.util.WPIUtilJNI;

View File

@@ -14,7 +14,7 @@ import org.wpilib.math.util.StateSpaceUtil;
/**
* This class helps simulate linear systems. To use this class, do the following in the {@link
* org.wpilib.opmode.IterativeRobotBase#simulationPeriodic} method.
* org.wpilib.framework.IterativeRobotBase#simulationPeriodic} method.
*
* <p>Call {@link #setInput(double...)} with the inputs to the system (usually voltage).
*

View File

@@ -4,9 +4,9 @@
package org.wpilib.simulation;
import org.wpilib.framework.RobotBase;
import org.wpilib.networktables.NetworkTableInstance;
import org.wpilib.networktables.StringPublisher;
import org.wpilib.opmode.RobotBase;
/** Class that facilitates control of a SendableChooser's selected option in simulation. */
public class SendableChooserSim implements AutoCloseable {

View File

@@ -21,9 +21,9 @@ import org.wpilib.datalog.FileLogger;
import org.wpilib.datalog.IntegerLogEntry;
import org.wpilib.datalog.StringLogEntry;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.framework.RobotBase;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.networktables.NetworkTableInstance;
import org.wpilib.opmode.RobotBase;
import org.wpilib.util.WPIUtilJNI;
import org.wpilib.util.concurrent.Event;

View File

@@ -5,7 +5,7 @@
package org.wpilib.system;
import java.io.File;
import org.wpilib.opmode.RobotBase;
import org.wpilib.framework.RobotBase;
/**
* Class for interacting with the Filesystem, particularly, interacting with FRC-related paths on