Skip to content

Commit

Permalink
Removed unsused code
Browse files Browse the repository at this point in the history
  • Loading branch information
stebb1976 committed Apr 12, 2021
1 parent f9da4cd commit 7bebd65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
27 changes: 0 additions & 27 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.XboxController;
import frc.robot.commands.ExampleCommand;
import frc.robot.commands.FindFeedForwardGainsForVelocity;
import frc.robot.commands.Shoot;
import frc.robot.commands.Drivetrain.ArcadeDrive;
import frc.robot.commands.Drivetrain.CharacterizeDrivetrain;
import frc.robot.commands.Feeder.FeedAmmo;
import frc.robot.commands.Feeder.PrepareAmmo;
import frc.robot.commands.Flywheel.CharacterizeFlywheel;
import frc.robot.commands.Flywheel.FlywheelMaintainSpeed;
import frc.robot.commands.Flywheel.FlywheelToSpeed;
import frc.robot.commands.Intake.IntakeDeploy;
import frc.robot.commands.Intake.IntakeRetract;
Expand All @@ -39,11 +33,8 @@
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
import frc.robot.Utility.Motor;
import frc.robot.Utility.Motor.ControlMode;
import frc.robot.Utility.Motor.MotorType;

//TODO configure motor feedforwards

/**
* This class is where the bulk of the robot should be declared. Since Command-based is a
* "declarative" paradigm, very little robot logic should actually be handled in the {@link Robot}
Expand Down Expand Up @@ -117,24 +108,6 @@ private void configureButtonBindings() {
* @return the command to run in autonomous
*/
public Command getAutonomousCommand() {
//return new CharacterizeFlywheel(m_flywheel);
//return new CharacterizeDrivetrain(m_drivetrain);
/*
return new FindFeedForwardGainsForVelocity(m_drivetrain,
(Double voltage)->{
m_drivetrain.setControlMode(frc.robot.subsystems.DifferentialDrivetrain.ControlMode.Voltage);
m_drivetrain.setLeftTarget(voltage);
m_drivetrain.setRightTarget(voltage);
},
()->{
return m_drivetrain.getLeftVelocity();
},
()->{
return m_drivetrain.getLeftAcceleration();
},
0.01
);
*/
return m_drivetrain.findFeedForwardGainsLeft;
//return new ExampleCommand();
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/frc/robot/commands/Shoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package frc.robot.commands;

import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
import edu.wpi.first.wpilibj2.command.ParallelRaceGroup;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.commands.Conveyor.ConveyorIn;
Expand Down

0 comments on commit 7bebd65

Please sign in to comment.