Skip to content

Commit 58112c9

Browse files
committed
Add getRotation2d method
1 parent d18e3c7 commit 58112c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/frc/robot/lib/path/RobotPath.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public RobotPath(List<Pose2d> poses, boolean isInverted, DrivetrainInterface dt)
6666
this.maxAccelMps2 = dt.getMaxAccelMps2();
6767
this.maxSpeedMps = dt.getMaxSpeedMps();
6868
}
69-
69+
public Rotation2d getRotation2d(int index){
70+
return poses.get(index).getRotation();
71+
}
7072
/**
7173
* Gets a path command for the given path
7274
*

0 commit comments

Comments
 (0)