Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/java/frc/robot/Robot.java
#	src/main/java/frc/robot/commands/auto/AutoSequenceFar.java
#	src/main/java/frc/robot/commands/auto/AutoSequenceLeft.java
  • Loading branch information
jackdkdf committed Feb 29, 2020
2 parents 3e3b5e7 + 729e0a0 commit 519c89e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
27 changes: 8 additions & 19 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.FeedbackDevice;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.wpilibj.PowerDistributionPanel;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import frc.robot.commands.auto.*;
import frc.robot.commands.auto.AutoSequenceCentre;
import frc.robot.commands.auto.AutoSequenceLeft;
import frc.robot.commands.auto.AutoSequenceRight;
import frc.robot.commands.auto.AutoSequenceTest;
import frc.robot.subsystems.*;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.TimedRobot;
Expand Down Expand Up @@ -125,21 +131,8 @@ public void robotPeriodic() {
@Override
public void autonomousInit() {
//
// AUTO SEQUENCE CODE:
// ---------------------------------
// new AutoSequenceRight().start();
//
new AutoSequenceTrench().start();
// new AutoSequenceTrench8Ball.start();
// new AutoSequenceTrenchReturn().start();
// new AutoSequenceCentre().start();
// new AutoSequenceFar().start();
// new AutoSequenceTest().start();
//

// NETWORK TABLE AUTO SEQUENCE CODE:
// ---------------------------------


//// Drive.leftParent.set(ControlMode.PercentOutput, 0.75);
//// Drive.rightParent.set(ControlMode.PercentOutput, -0.75);
//
Expand All @@ -151,10 +144,6 @@ public void autonomousInit() {
// new AutoSequenceCentre().start();
// }else if (position == 2){
// new AutoSequenceRight().start();
// }else if (position == 3){
// new AutoSequenceDelta.start();
// }else if (position == 4){
// new AutoSequenceLeft8Ball.start();
// }else{
// new AutoSequenceTest().start();
// }
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/commands/auto/AutoSequenceCentre.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class AutoSequenceCentre extends CommandGroup {

public AutoSequenceCentre(){

//The autonomous sequence beginning in the CENTRE of the field.

addSequential(new ResetEncoderCounts());
addSequential(new Shoot(SmartDashboard.getNumber("shooterCloseSpeed", SmartDashboard.getNumber("shooterCloseSpeed", 0))));
addSequential(new AngleOfAttack(45));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/auto/MoveToPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public void initialize(){
Drive.leftParent.selectProfileSlot(0, 0);
Drive.rightParent.selectProfileSlot(0, 0);
Drive.leftParent.configMotionCruiseVelocity(2000);
Drive.leftParent.configMotionAcceleration(2000);
Drive.rightParent.configMotionAcceleration(2000);
Drive.leftParent.configMotionAcceleration(3105);
Drive.rightParent.configMotionAcceleration(3105);
Drive.rightParent.configMotionCruiseVelocity(2000);

double leftStart = Drive.leftParent.getSelectedSensorPosition();
Expand Down

0 comments on commit 519c89e

Please sign in to comment.