mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Removed extra newlines from beginning of Java classes (#859)
The content of this PR was generated by styleguide#111.
This commit is contained in:
committed by
Peter Johnson
parent
8346caed9c
commit
eedb8910c3
@@ -24,7 +24,6 @@ import org.opencv.imgproc.Imgproc;
|
||||
* processing.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
Thread m_visionThread;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -24,7 +24,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
* interface to the commands and command groups that allow control of the robot.
|
||||
*/
|
||||
public class OI {
|
||||
|
||||
private Joystick m_joystick = new Joystick(0);
|
||||
|
||||
public OI() {
|
||||
|
||||
@@ -26,7 +26,6 @@ import edu.wpi.first.wpilibj.examples.gearsbot.subsystems.Wrist;
|
||||
* directory.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
Command m_autonomousCommand;
|
||||
|
||||
public static DriveTrain m_drivetrain;
|
||||
|
||||
@@ -20,7 +20,6 @@ import edu.wpi.first.wpilibj.examples.gearsbot.Robot;
|
||||
* encoders.
|
||||
*/
|
||||
public class SetDistanceToBox extends Command {
|
||||
|
||||
private PIDController m_pid;
|
||||
|
||||
public SetDistanceToBox(double distance) {
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.examples.gearsbot.Robot;
|
||||
* Have the robot drive tank style using the PS3 Joystick until interrupted.
|
||||
*/
|
||||
public class TankDriveWithJoystick extends Command {
|
||||
|
||||
public TankDriveWithJoystick() {
|
||||
requires(Robot.m_drivetrain);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.command.Subsystem;
|
||||
* don't stall.
|
||||
*/
|
||||
public class Claw extends Subsystem {
|
||||
|
||||
private Victor m_motor = new Victor(7);
|
||||
private DigitalInput m_contact = new DigitalInput(5);
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
* and a gyro.
|
||||
*/
|
||||
public class DriveTrain extends Subsystem {
|
||||
|
||||
private SpeedController m_leftMotor
|
||||
= new SpeedControllerGroup(new Spark(0), new Spark(1));
|
||||
private SpeedController m_rightMotor
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
* world do to minor differences.
|
||||
*/
|
||||
public class Elevator extends PIDSubsystem {
|
||||
|
||||
private Victor m_motor;
|
||||
private AnalogPotentiometer m_pot;
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
* of a linear joint.
|
||||
*/
|
||||
public class Wrist extends PIDSubsystem {
|
||||
|
||||
private Victor m_motor;
|
||||
private AnalogPotentiometer m_pot;
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ import edu.wpi.first.wpilibj.drive.DifferentialDrive;
|
||||
* directory.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
private DifferentialDrive m_robotDrive
|
||||
= new DifferentialDrive(new Spark(0), new Spark(1));
|
||||
private Joystick m_stick = new Joystick(0);
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.first.wpilibj.drive.DifferentialDrive;
|
||||
* backwards while the gyro is used for direction keeping.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
private static final double kAngleSetpoint = 0.0;
|
||||
private static final double kP = 0.005; // propotional turning constant
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ import org.opencv.imgproc.Imgproc;
|
||||
* processing.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
Thread m_visionThread;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.drive.MecanumDrive;
|
||||
* class.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
private static final int kFrontLeftChannel = 2;
|
||||
private static final int kRearLeftChannel = 3;
|
||||
private static final int kFrontRightChannel = 1;
|
||||
|
||||
@@ -21,7 +21,6 @@ import edu.wpi.first.wpilibj.Spark;
|
||||
* range from -1 to 1 making it easy to work together.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
private static final int kMotorPort = 0;
|
||||
private static final int kJoystickPort = 0;
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ import edu.wpi.first.wpilibj.examples.pacgoat.subsystems.Shooter;
|
||||
* directory.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
Command m_autonomousCommand;
|
||||
public static OI oi;
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ import edu.wpi.first.wpilibj.examples.pacgoat.Robot;
|
||||
* detect that.
|
||||
*/
|
||||
public class CloseClaw extends InstantCommand {
|
||||
|
||||
public CloseClaw() {
|
||||
requires(Robot.collector);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@ import edu.wpi.first.wpilibj.Joystick;
|
||||
* mechanism.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
private static final int kPotChannel = 1;
|
||||
private static final int kMotorChannel = 7;
|
||||
private static final int kJoystickChannel = 0;
|
||||
|
||||
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.IterativeRobot;
|
||||
* the robotInit() method in your program.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
@Override
|
||||
public void robotInit() {
|
||||
CameraServer.getInstance().startAutomaticCapture();
|
||||
|
||||
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.drive.DifferentialDrive;
|
||||
* it contains the code necessary to operate a robot with tank drive.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
private DifferentialDrive m_myRobot;
|
||||
private Joystick m_leftStick;
|
||||
private Joystick m_rightStick;
|
||||
|
||||
@@ -23,7 +23,6 @@ import edu.wpi.first.wpilibj.templates.commandbased.subsystems.ExampleSubsystem;
|
||||
* project.
|
||||
*/
|
||||
public class Robot extends TimedRobot {
|
||||
|
||||
public static final ExampleSubsystem kExampleSubsystem
|
||||
= new ExampleSubsystem();
|
||||
public static OI m_oi;
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
* project.
|
||||
*/
|
||||
public class Robot extends IterativeRobot {
|
||||
|
||||
private static final String kDefaultAuto = "Default";
|
||||
private static final String kCustomAuto = "My Auto";
|
||||
private String m_autoSelected;
|
||||
|
||||
@@ -33,7 +33,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
* Command-Based instead if you're new.
|
||||
*/
|
||||
public class Robot extends SampleRobot {
|
||||
|
||||
private static final String kDefaultAuto = "Default";
|
||||
private static final String kCustomAuto = "My Auto";
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||
* project.
|
||||
*/
|
||||
public class Robot extends TimedRobot {
|
||||
|
||||
private static final String kDefaultAuto = "Default";
|
||||
private static final String kCustomAuto = "My Auto";
|
||||
private String m_autoSelected;
|
||||
|
||||
Reference in New Issue
Block a user