From 9077c714ec9aaa17110d259228052fa82ee7f790 Mon Sep 17 00:00:00 2001 From: lukesta182 <33330639+lukesta182@users.noreply.github.com> Date: Mon, 18 Mar 2019 17:09:16 -0600 Subject: [PATCH] removed because obsolet --- .../frc4388/robot/commands/togglemanuel.java | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 2019robot/src/main/java/org/usfirst/frc4388/robot/commands/togglemanuel.java diff --git a/2019robot/src/main/java/org/usfirst/frc4388/robot/commands/togglemanuel.java b/2019robot/src/main/java/org/usfirst/frc4388/robot/commands/togglemanuel.java deleted file mode 100644 index a86b1f5..0000000 --- a/2019robot/src/main/java/org/usfirst/frc4388/robot/commands/togglemanuel.java +++ /dev/null @@ -1,68 +0,0 @@ -/*----------------------------------------------------------------------------*/ -/* Copyright (c) 2018 FIRST. All Rights Reserved. */ -/* Open Source Software - may be modified and shared by FRC teams. The code */ -/* must be accompanied by the FIRST BSD license file in the root directory of */ -/* the project. */ -/*----------------------------------------------------------------------------*/ - -package org.usfirst.frc4388.robot.commands; - -import org.usfirst.frc4388.robot.Robot; -import org.usfirst.frc4388.robot.subsystems.Arm; -import org.usfirst.frc4388.robot.subsystems.Arm.ArmControlMode; - -import edu.wpi.first.wpilibj.command.Command; - - -public class togglemanuel extends Command { - public togglemanuel() { - System.err.print("togle"); - if (Robot.arm.getArmControlMode() == ArmControlMode.MOTION_MAGIC){ - new ArmSetMode(ArmControlMode.JOYSTICK_MANUAL); - System.err.print("manuel"); - } - else if (Robot.arm.getArmControlMode() == ArmControlMode.JOYSTICK_MANUAL){ - new ArmSetMode(ArmControlMode.MOTION_MAGIC); - System.err.print("Smart control"); - } - else{ - new ArmSetMode(ArmControlMode.JOYSTICK_MANUAL); - } - - - } - - - // Use requires() here to declare subsystem dependencies - // eg. requires(chassis); - - - // Called just before this Command runs the first time - @Override - protected void initialize() { - System.err.print("pls work"); - } - - // Called repeatedly when this Command is scheduled to run - @Override - protected void execute() { - - } - - // Make this return true when this Command no longer needs to run execute() - @Override - protected boolean isFinished() { - return false; - } - - // Called once after isFinished returns true - @Override - protected void end() { - } - - // Called when another command which requires one or more of the same - // subsystems is scheduled to run - @Override - protected void interrupted() { - } -}