Skip to content

Commit

Permalink
removed unnecessaey code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pointy Ice committed Feb 2, 2024
1 parent 7588e91 commit de020f6
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions src/main/java/frc/robot/subsystems/elevator/ElevatorSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableEvent.Kind;

import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.SubsystemBase;

import frc.robot.Constants.ElevatorConstants;
import frc.robot.Constants.ElevatorConstants.*;

public class ElevatorSubsystem extends SubsystemBase{
private NetworkTableInstance elevatorNetworkTableInstance;
Expand Down Expand Up @@ -72,8 +70,8 @@ public ElevatorSubsystem() {
this.setTargetState(ElevatorState.GROUND);
}
else if(message.equals("SPEAKER")){
System.out.println("Setting Target to SPEAKER");
this.setTargetState(ElevatorState.SPEAKER);
System.out.println("Setting Target to TRAP");
this.setTargetState(ElevatorState.TRAP);
}
else if(message.equals("AMP")){
System.out.println("Setting Target to AMP");
Expand All @@ -87,8 +85,8 @@ else if(message.equals("AMP")){
else if(currentTargetState.equals(ElevatorState.GROUND)){
System.out.println("New target state is GROUND!");
}
else if(currentTargetState.equals(ElevatorState.SPEAKER)){
System.out.println("New target state is SPEAKER!");
else if(currentTargetState.equals(ElevatorState.TRAP)){
System.out.println("New target state is TRAP!");
}
});
//this entry is working!
Expand Down Expand Up @@ -135,13 +133,6 @@ public void periodic(){

//extensionMotor.enableSoftLimit(SoftLimitDirection.kReverse, true);
//this through overun when no motor connected.

//Start move to target posision
if (targetState != state){

}


}

public boolean atState(ElevatorState state){
Expand Down Expand Up @@ -188,9 +179,4 @@ public ElevatorState getTargetState(){
public void setManualPower(double power){
this.manualPower = power;
}

/* private void acceptNewPosition(NetworkTable table, String key, NetworkTableEvent event){
System.out.println("got networktablex");
System.out.println(event.valueData.toString());
} */
}
}

0 comments on commit de020f6

Please sign in to comment.