/
BluePathB.java
34 lines (26 loc) · 1.09 KB
/
BluePathB.java
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
package com.team1806.frc2020.paths;
import com.team1806.frc2020.paths.PathBuilder.Waypoint;
import com.team1806.lib.control.Path;
import java.util.ArrayList;
public class BluePathB implements PathContainer {
public static final String kStartAutoAimingMarker = "START_AUTO_AIMING";
public static final String kStartRaisingElevatorMarker = "START_RAISING_ELEVATOR";
public BluePathB(boolean left) {
mLeft = left;
}
@Override
public Path buildPath() {
ArrayList<Waypoint> sWaypoints = new ArrayList<Waypoint>();
sWaypoints.add(new Waypoint(45, 30, 0, 0));
sWaypoints.add(new Waypoint(180, 60, 15, 60));
sWaypoints.add(new Waypoint(200, 80, 15, 60));
sWaypoints.add(new Waypoint(240, 120, 15, 60));
sWaypoints.add(new Waypoint(260, 140, 15, 60));
sWaypoints.add(new Waypoint(300, 60, 15, 60));
sWaypoints.add(new Waypoint(335, 50, 15, 60));
return PathBuilder.buildPathFromWaypoints(sWaypoints);
}
@Override
public boolean isReversed() {
return false;
}