forked from Team254/FRC-2019-Public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetOffHab2Path.java
33 lines (26 loc) · 966 Bytes
/
GetOffHab2Path.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
package com.team254.frc2019.paths;
import com.team254.frc2019.paths.PathBuilder.Waypoint;
import com.team254.lib.control.Path;
import com.team254.lib.geometry.Pose2d;
import com.team254.lib.geometry.Rotation2d;
import com.team254.lib.geometry.Translation2d;
import java.util.ArrayList;
public class GetOffHab2Path implements PathContainer {
@Override
public Path buildPath() {
ArrayList<Waypoint> sWaypoints = new ArrayList<Waypoint>();
sWaypoints.add(new Waypoint(0, 0, 0, 0));
sWaypoints.add(new Waypoint(25, 0, 0, 20));
//sWaypoints.add(new Waypoint(100, 0, 0.0, 100.0));
//sWaypoints.add(new Waypoint(100, 100, 0, 100));
return PathBuilder.buildPathFromWaypoints(sWaypoints);
}
//@Override
public Pose2d getStartPose() {
return new Pose2d(new Translation2d(0, 0), Rotation2d.fromDegrees(180.0));
}
@Override
public boolean isReversed() {
return false;
}
}