-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutonomous.java
More file actions
100 lines (73 loc) · 3.52 KB
/
Copy pathAutonomous.java
File metadata and controls
100 lines (73 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package frc.robot;
import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
import edu.wpi.first.wpilibj2.command.ParallelDeadlineGroup;
import edu.wpi.first.wpilibj2.command.ParallelRaceGroup;
import edu.wpi.first.wpilibj2.command.WaitCommand;
import frc.robot.commands.drive.TrajectoryFollower;
import frc.robot.variables.Objects;
import java.util.ArrayList;
public class Autonomous {
private ArrayList<CommandBase> commandsList;
boolean start = false;
public Autonomous() {
commandsList = new ArrayList<CommandBase>();
}
public void redPath() { //Original FOUR BALL AUTO from comp 2
if(!start) {
start = true;
}
startAutonomous();
}
public void orangePath() { //THREE BALL, temporarily commented out for path following testing
if (!start) {
//commandsList.add(new TrajectoryFollower(Objects.driveSubsystem, Objects.drivetrain));
// commandsList.add(new ResetCommand(90));
// commandsList.add(new HoodZeroCommand(Objects.hoodSubsystem));
// commandsList.add(new MoveToCommand(Objects.moveToSubsystem, 40, -1, 90, 0.7, .6, 10, true)); //FIRST BALL
// // commandsList.add(new HoodZeroCommand(Objects.hoodSubsystem));
// // commandsList.add(new MoveToCommand(Objects.moveToSubsystem, 37, 0, 90, 0.5, 0.15));
// //commandsList.add(new IntakeCommand(Objects.intakeAuto));
// commandsList.add(new ReadyToShootCommand());
// commandsList.add (new ShootCommand(Objects.shootSubsystem, Objects.hoodSubsystem, Objects.drivetrain, Objects.visionSubsystem, false , Objects.visionSubsystem.rpmFromVision(), false));
// commandsList.add(new ReadyToShootCommand());
// commandsList.add (new ShootCommand(Objects.shootSubsystem, Objects.hoodSubsystem, Objects.drivetrain, Objects.visionSubsystem, false, Objects.visionSubsystem.rpmFromVision(), true));
// //commandsList.add (new MoveToCommand(Objects.moveToSubsystem, -10, -90, 180, .65, .95, 10, true, false)); //SECOND BALL //TODO REMOVE THIS
// commandsList.add(new ReadyToShootCommand());
// commandsList.add (new ShootCommand(Objects.shootSubsystem, Objects.hoodSubsystem, Objects.drivetrain, Objects.visionSubsystem, false, Objects.visionSubsystem.rpmFromVision(), false));
start=true;
}
startAutonomous();
}
public void yellowPath() { //TWO BALL in four ball position
if (!start) {
start = true;
}
startAutonomous();
}
public void greenPath() { //TWO BALL with one ball denial in two ball position (BOTTOM LEFT)
if (!start) {
start = true;
}
startAutonomous();
}
public void bluePath() { //TWO BALL with TWO BALL denail
if(!start) {
start = true;
}
startAutonomous();
}
public void purplePath() { //5 ball
if(!start) {
//commandsList.add(new HoodZeroCommand(Objects.hoodSubsystem));
// comman54dsList.add(new MoveToCommand(Objects.moveToSubsystem, -35, 3, 0, 0.4, 0.25));
// commandsList.add(new MoveToCommand(Objects.moveToSubsystem,0 , 30, 0, 0.5, 0.25));
start = true;
}
startAutonomous();
}
public void defaultPath() {
}
public void startAutonomous() {
}
}