mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT Run java package replacements
This commit is contained in:
committed by
Peter Johnson
parent
12823a003d
commit
f0a3c64121
@@ -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.snippets.accelerometercollision;
|
||||
package org.wpilib.snippets.accelerometercollision;
|
||||
|
||||
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
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
// 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.snippets.accelerometercollision;
|
||||
package org.wpilib.snippets.accelerometercollision;
|
||||
|
||||
import edu.wpi.first.wpilibj.OnboardIMU;
|
||||
import edu.wpi.first.wpilibj.OnboardIMU.MountOrientation;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
import org.wpilib.hardware.imu.OnboardIMU;
|
||||
import org.wpilib.hardware.imu.OnboardIMU.MountOrientation;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.smartdashboard.SmartDashboard;
|
||||
|
||||
/**
|
||||
* Collision detection snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.accelerometerfilter;
|
||||
package org.wpilib.snippets.accelerometerfilter;
|
||||
|
||||
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
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// 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.snippets.accelerometerfilter;
|
||||
package org.wpilib.snippets.accelerometerfilter;
|
||||
|
||||
import edu.wpi.first.math.filter.LinearFilter;
|
||||
import edu.wpi.first.wpilibj.OnboardIMU;
|
||||
import edu.wpi.first.wpilibj.OnboardIMU.MountOrientation;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
import org.wpilib.math.filter.LinearFilter;
|
||||
import org.wpilib.hardware.imu.OnboardIMU;
|
||||
import org.wpilib.hardware.imu.OnboardIMU.MountOrientation;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.smartdashboard.SmartDashboard;
|
||||
|
||||
/**
|
||||
* Accelerometer filtering snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.adxlaccelerometers;
|
||||
package org.wpilib.snippets.adxlaccelerometers;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.adxlaccelerometers;
|
||||
package org.wpilib.snippets.adxlaccelerometers;
|
||||
|
||||
import edu.wpi.first.wpilibj.ADXL345_I2C;
|
||||
import edu.wpi.first.wpilibj.I2C;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.accelerometer.ADXL345_I2C;
|
||||
import org.wpilib.hardware.bus.I2C;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* ADXL345, 362 Accelerometer snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.analogaccelerometer;
|
||||
package org.wpilib.snippets.analogaccelerometer;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.analogaccelerometer;
|
||||
package org.wpilib.snippets.analogaccelerometer;
|
||||
|
||||
import edu.wpi.first.wpilibj.AnalogAccelerometer;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.accelerometer.AnalogAccelerometer;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* AnalogAccelerometer snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.analogencoder;
|
||||
package org.wpilib.snippets.analogencoder;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.analogencoder;
|
||||
package org.wpilib.snippets.analogencoder;
|
||||
|
||||
import edu.wpi.first.wpilibj.AnalogEncoder;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.rotation.AnalogEncoder;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* AnalogEncoder snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.analoginput;
|
||||
package org.wpilib.snippets.analoginput;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.analoginput;
|
||||
package org.wpilib.snippets.analoginput;
|
||||
|
||||
import edu.wpi.first.wpilibj.AnalogInput;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.discrete.AnalogInput;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* AnalogInput snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.analogpotentiometer;
|
||||
package org.wpilib.snippets.analogpotentiometer;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.analogpotentiometer;
|
||||
package org.wpilib.snippets.analogpotentiometer;
|
||||
|
||||
import edu.wpi.first.wpilibj.AnalogInput;
|
||||
import edu.wpi.first.wpilibj.AnalogPotentiometer;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.discrete.AnalogInput;
|
||||
import org.wpilib.hardware.rotation.AnalogPotentiometer;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* AnalogPotentiometer snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.digitalinput;
|
||||
package org.wpilib.snippets.digitalinput;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.digitalinput;
|
||||
package org.wpilib.snippets.digitalinput;
|
||||
|
||||
import edu.wpi.first.wpilibj.DigitalInput;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.discrete.DigitalInput;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* DigitalInput snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.dutycycleencoder;
|
||||
package org.wpilib.snippets.dutycycleencoder;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.dutycycleencoder;
|
||||
package org.wpilib.snippets.dutycycleencoder;
|
||||
|
||||
import edu.wpi.first.wpilibj.DutyCycleEncoder;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.rotation.DutyCycleEncoder;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* DutyCycleEncoder snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.encoder;
|
||||
package org.wpilib.snippets.encoder;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.encoder;
|
||||
package org.wpilib.snippets.encoder;
|
||||
|
||||
import edu.wpi.first.wpilibj.Encoder;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.rotation.Encoder;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* Encoder snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.encoderdrive;
|
||||
package org.wpilib.snippets.encoderdrive;
|
||||
|
||||
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
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
// 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.snippets.encoderdrive;
|
||||
package org.wpilib.snippets.encoderdrive;
|
||||
|
||||
import edu.wpi.first.wpilibj.Encoder;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
|
||||
import edu.wpi.first.wpilibj.motorcontrol.Spark;
|
||||
import org.wpilib.hardware.rotation.Encoder;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.drive.DifferentialDrive;
|
||||
import org.wpilib.hardware.motor.Spark;
|
||||
|
||||
/**
|
||||
* Encoder drive to distance snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.encoderhoming;
|
||||
package org.wpilib.snippets.encoderhoming;
|
||||
|
||||
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
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
// 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.snippets.encoderhoming;
|
||||
package org.wpilib.snippets.encoderhoming;
|
||||
|
||||
import edu.wpi.first.wpilibj.DigitalInput;
|
||||
import edu.wpi.first.wpilibj.Encoder;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import edu.wpi.first.wpilibj.motorcontrol.Spark;
|
||||
import org.wpilib.hardware.discrete.DigitalInput;
|
||||
import org.wpilib.hardware.rotation.Encoder;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.hardware.motor.Spark;
|
||||
|
||||
/**
|
||||
* Encoder mechanism homing snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.limitswitch;
|
||||
package org.wpilib.snippets.limitswitch;
|
||||
|
||||
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
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
// 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.snippets.limitswitch;
|
||||
package org.wpilib.snippets.limitswitch;
|
||||
|
||||
import edu.wpi.first.wpilibj.DigitalInput;
|
||||
import edu.wpi.first.wpilibj.Joystick;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import edu.wpi.first.wpilibj.motorcontrol.PWMVictorSPX;
|
||||
import org.wpilib.hardware.discrete.DigitalInput;
|
||||
import org.wpilib.driverstation.Joystick;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.hardware.motor.PWMVictorSPX;
|
||||
|
||||
/**
|
||||
* Limit Switch snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.onboardimu;
|
||||
package org.wpilib.snippets.onboardimu;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.onboardimu;
|
||||
package org.wpilib.snippets.onboardimu;
|
||||
|
||||
import edu.wpi.first.wpilibj.OnboardIMU;
|
||||
import edu.wpi.first.wpilibj.OnboardIMU.MountOrientation;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import org.wpilib.hardware.imu.OnboardIMU;
|
||||
import org.wpilib.hardware.imu.OnboardIMU.MountOrientation;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
|
||||
/**
|
||||
* on board IMU snippets for frc-docs.
|
||||
|
||||
@@ -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.snippets.profiledpidfeedforward;
|
||||
package org.wpilib.snippets.profiledpidfeedforward;
|
||||
|
||||
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
|
||||
|
||||
@@ -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.snippets.profiledpidfeedforward;
|
||||
package org.wpilib.snippets.profiledpidfeedforward;
|
||||
|
||||
import edu.wpi.first.math.controller.ProfiledPIDController;
|
||||
import edu.wpi.first.math.controller.SimpleMotorFeedforward;
|
||||
import edu.wpi.first.math.trajectory.TrapezoidProfile;
|
||||
import edu.wpi.first.wpilibj.Encoder;
|
||||
import edu.wpi.first.wpilibj.TimedRobot;
|
||||
import edu.wpi.first.wpilibj.motorcontrol.PWMSparkMax;
|
||||
import org.wpilib.math.controller.ProfiledPIDController;
|
||||
import org.wpilib.math.controller.SimpleMotorFeedforward;
|
||||
import org.wpilib.math.trajectory.TrapezoidProfile;
|
||||
import org.wpilib.hardware.rotation.Encoder;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.hardware.motor.PWMSparkMax;
|
||||
|
||||
/**
|
||||
* ProfiledPIDController with feedforward snippets for frc-docs.
|
||||
|
||||
Reference in New Issue
Block a user