acmerobotics / road-runner-quickstart

FTC quickstart for https://github.com/acmerobotics/road-runner
BSD 3-Clause Clear License
187 stars 1k forks source link

how to change trajectory speed on rr 1.0.0? #331

Closed jamesgu888 closed 9 months ago

jamesgu888 commented 9 months ago

how to change velconstraint on path movement such as .splineTo(new Vector2d(10, 15), ____)?

Vector5233 commented 9 months ago

Similar question. The velocity constraints have substantially changed from v 0.5.x and I’m unclear how to use eg MaxVelConstraint. It seems to require a path as an argument. So would we first construct the trajectory, then pass a MaxVelConstraint to runBlocking?

rbrott commented 9 months ago

Changing the trajectory speed from the builders works pretty much the same as RR 0.5.x. I wrote a short guide on the basics.