finished 5 ball

This commit is contained in:
Aarav Shah
2020-03-11 19:41:56 -06:00
parent 8b3ce633d6
commit 18021fbdeb
5 changed files with 12 additions and 6 deletions
File diff suppressed because one or more lines are too long
+2
View File
@@ -82,6 +82,8 @@ public class Robot extends TimedRobot {
m_robotContainer.setDriveNeutralMode(NeutralMode.Brake);
m_robotContainer.setDriveGearState(true);
m_robotContainer.resetOdometry(new Pose2d());
m_robotContainer.resetGyroYawRobotContainer(0);
//m_robotContainer.configDriveTrainSensors(FeedbackDevice.IntegratedSensor);
/*
@@ -325,8 +325,8 @@ public class RobotContainer {
//return m_eightBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_driveOffLineForward.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_driveOffLineBackward.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_fiveBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
return m_tenBallAutoMiddle.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0));
return m_fiveBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_tenBallAutoMiddle.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0));
} catch (Exception e) {
System.err.println("ERROR");
@@ -438,6 +438,10 @@ public class RobotContainer {
m_robotDrive.setOdometry(pose);
}
public void resetGyroYawRobotContainer(double angle) {
m_robotDrive.resetGyroYaw(angle);
}
/**
* Used for analog inputs like triggers and axises.
* @return IHandController interface for the Driver Controller.
@@ -22,7 +22,7 @@ public class FiveBallAutoMiddle extends SequentialCommandGroup {
// Use addRequirements() here to declare subsystem dependencies.
addCommands(
paths[0],
new TankDriveVelocity(drive, -3.1, -0.3, 0.97)
new TankDriveVelocity(drive, -3.2, -0.2, 0.8)
);
}
}