SCRIPT Run java package replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:55:43 -05:00
committed by Peter Johnson
parent 12823a003d
commit f0a3c64121
1590 changed files with 8469 additions and 8469 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 edu.wpi.first.wpilibj.examples.romireference;
package org.wpilib.examples.romireference;
/**
* The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean

View File

@@ -2,9 +2,9 @@
// 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 edu.wpi.first.wpilibj.examples.romireference;
package org.wpilib.examples.romireference;
import edu.wpi.first.wpilibj.RobotBase;
import org.wpilib.opmode.RobotBase;
/**
* Do NOT add any static variables to this class, or any initialization at all. Unless you know what

View File

@@ -2,11 +2,11 @@
// 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 edu.wpi.first.wpilibj.examples.romireference;
package org.wpilib.examples.romireference;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import org.wpilib.opmode.TimedRobot;
import org.wpilib.command2.Command;
import org.wpilib.command2.CommandScheduler;
/**
* The methods in this class are called automatically corresponding to each mode, as described in

View File

@@ -2,22 +2,22 @@
// 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 edu.wpi.first.wpilibj.examples.romireference;
package org.wpilib.examples.romireference;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj.examples.romireference.commands.ArcadeDrive;
import edu.wpi.first.wpilibj.examples.romireference.commands.AutonomousDistance;
import edu.wpi.first.wpilibj.examples.romireference.commands.AutonomousTime;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj.romi.OnBoardIO;
import edu.wpi.first.wpilibj.romi.OnBoardIO.ChannelMode;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.PrintCommand;
import edu.wpi.first.wpilibj2.command.button.Trigger;
import org.wpilib.driverstation.GenericHID;
import org.wpilib.driverstation.Joystick;
import org.wpilib.driverstation.XboxController;
import org.wpilib.examples.romireference.commands.ArcadeDrive;
import org.wpilib.examples.romireference.commands.AutonomousDistance;
import org.wpilib.examples.romireference.commands.AutonomousTime;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.romi.OnBoardIO;
import org.wpilib.romi.OnBoardIO.ChannelMode;
import org.wpilib.smartdashboard.SendableChooser;
import org.wpilib.smartdashboard.SmartDashboard;
import org.wpilib.command2.Command;
import org.wpilib.command2.PrintCommand;
import org.wpilib.command2.button.Trigger;
/**
* This class is where the bulk of the robot should be declared. Since Command-based is a
@@ -56,8 +56,8 @@ public class RobotContainer {
/**
* Use this method to define your button->command mappings. Buttons can be created by
* instantiating a {@link GenericHID} or one of its subclasses ({@link
* edu.wpi.first.wpilibj.Joystick} or {@link XboxController}), and then passing it to a {@link
* edu.wpi.first.wpilibj2.command.button.JoystickButton}.
* org.wpilib.driverstation.Joystick} or {@link XboxController}), and then passing it to a {@link
* org.wpilib.command2.button.JoystickButton}.
*/
private void configureButtonBindings() {
// Default command is arcade drive. This will run unless another command

View File

@@ -2,10 +2,10 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.commands;
package org.wpilib.examples.romireference.commands;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj2.command.Command;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.command2.Command;
import java.util.function.Supplier;
public class ArcadeDrive extends Command {

View File

@@ -2,10 +2,10 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.commands;
package org.wpilib.examples.romireference.commands;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.command2.SequentialCommandGroup;
public class AutonomousDistance extends SequentialCommandGroup {
/**

View File

@@ -2,10 +2,10 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.commands;
package org.wpilib.examples.romireference.commands;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.command2.SequentialCommandGroup;
public class AutonomousTime extends SequentialCommandGroup {
/**

View File

@@ -2,10 +2,10 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.commands;
package org.wpilib.examples.romireference.commands;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj2.command.Command;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.command2.Command;
public class DriveDistance extends Command {
private final Drivetrain m_drive;

View File

@@ -2,10 +2,10 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.commands;
package org.wpilib.examples.romireference.commands;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj2.command.Command;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.command2.Command;
public class DriveTime extends Command {
private final double m_duration;

View File

@@ -2,10 +2,10 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.commands;
package org.wpilib.examples.romireference.commands;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj2.command.Command;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.command2.Command;
public class TurnDegrees extends Command {
private final Drivetrain m_drive;

View File

@@ -2,10 +2,10 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.commands;
package org.wpilib.examples.romireference.commands;
import edu.wpi.first.wpilibj.examples.romireference.subsystems.Drivetrain;
import edu.wpi.first.wpilibj2.command.Command;
import org.wpilib.examples.romireference.subsystems.Drivetrain;
import org.wpilib.command2.Command;
/*
* Creates a new TurnTime command. This command will turn your robot for a

View File

@@ -2,14 +2,14 @@
// 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 edu.wpi.first.wpilibj.examples.romireference.subsystems;
package org.wpilib.examples.romireference.subsystems;
import edu.wpi.first.util.sendable.SendableRegistry;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
import edu.wpi.first.wpilibj.motorcontrol.Spark;
import edu.wpi.first.wpilibj.romi.RomiGyro;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import org.wpilib.util.sendable.SendableRegistry;
import org.wpilib.hardware.rotation.Encoder;
import org.wpilib.drive.DifferentialDrive;
import org.wpilib.hardware.motor.Spark;
import org.wpilib.romi.RomiGyro;
import org.wpilib.command2.SubsystemBase;
public class Drivetrain extends SubsystemBase {
private static final double kCountsPerRevolution = 1440.0;