-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorking-Parking-Auto.txt
More file actions
21 lines (21 loc) · 1.2 KB
/
Working-Parking-Auto.txt
File metadata and controls
21 lines (21 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
val trajectory = drive.trajectorySequenceBuilder(start)
.lineTo(Vector2d(-38.0, 9.0),
SampleMecanumDrive.getVelocityConstraint(10.0, DriveConstants.MAX_ANG_VEL, DriveConstants.TRACK_WIDTH),
SampleMecanumDrive.getAccelerationConstraint(DriveConstants.MAX_ACCEL)
)
.turn(Math.toRadians(90.0))
.lineTo(
Vector2d(14.0, 9.0),
SampleMecanumDrive.getVelocityConstraint(10.0, DriveConstants.MAX_ANG_VEL, DriveConstants.TRACK_WIDTH),
SampleMecanumDrive.getAccelerationConstraint(DriveConstants.MAX_ACCEL)
)
.turn(Math.toRadians(180.0))
.lineTo(Vector2d(14.0, 58.0),
SampleMecanumDrive.getVelocityConstraint(10.0, DriveConstants.MAX_ANG_VEL, DriveConstants.TRACK_WIDTH),
SampleMecanumDrive.getAccelerationConstraint(DriveConstants.MAX_ACCEL)
)
.lineTo(Vector2d(59.0, 58.0),
SampleMecanumDrive.getVelocityConstraint(30.0, DriveConstants.MAX_ANG_VEL, DriveConstants.TRACK_WIDTH),
SampleMecanumDrive.getAccelerationConstraint(DriveConstants.MAX_ACCEL)
)
.build()