mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +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,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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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).
|
||||
*
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user