Pedro Path Builder
Draw a path on the BIOBUZZ field. See where the 18 x 18 in robot goes and what it hits. Then copy the Java for FTC-Helper-Lib's Pedro module.
Work in progress. The red marks come from a simple field model (the field parts seen from above). Always try a new path in the simulator, then slowly on the real field.
Checks
Robot
BIOBUZZ's field is turned half a turn between the alliances, not mirrored. So keep mirrorForRed() false: the same numbers work from both walls.
Start spot
Shown on the Driver Station at INIT as "Place robot : ..." (with the s.start line on): read it at match setup.
Drag the green dot to move it. x right, y away from your wall, inches. Heading: 0 = facing away, 90 = facing left.
Parts
Hold: Pedro keeps the robot on the end point (for scoring). Each part starts where the one before ends. The robot drives the parts with no stop between them.
Actions along the path
Start something while the robot keeps driving: the intake halfway, the launcher 12 in before the end. Choose an action above the map and tap the path, or press Add one. Drag an orange marker along the path to move it. A launcher's fireAllAction() or fireAction(n) gets a flywheel box: empty, the usual speed; a number, that shot's own RPM (for a robot with no camera). A new part to a spot behind the robot drives backwards along it, so it needs no turn.
Each one starts once, at its place, and the path goes on (like a run step). The code lists them in the order they come along the path. Distances count along the whole path, all parts. The rules
Java
Where each part goes, in your autonomous's Java file (the one with extends Auto<Robot>, in your autos folder, like the Pedro example's CurveToTheGoal.java): the import lines at the top of the file, under the other import lines; the static final PedroPath ... line inside the class, above the steps(...) method (that is what "your other fields, at the top of the class" means); and the s.follow(...) or s.driveTo(...) lines inside steps(Steps s, Robot robot). Lesson 8 shows a whole file.
Edit a path you have
Paste your PedroPath code and its follow step (or driveTo steps with their s.start line). Its PathAt lines become markers. Plain numbers only.
Simple Auto Builder
For any robot, tank or mecanum, with no odometry. Plan an autonomous as a list of steps (drive, strafe, turn, wait, start something), see where it takes the robot and how long it takes, then copy the Java for FTC-Helper-Lib's autonomous builder and a file that checks it in the simulator.
A plan, not physics. The map shows where the robot goes if every step does exactly what it says. A real robot slips a little on every step, and the errors add up. Try it in the simulator, then slowly on the real field.
Checks
Robot
A tap on the map drives the way the robot already faces: a spot behind it backs up to it. Mecanum slides straight there, with no turn. A tank drive goes only forward and back: it makes the smaller turn first (its back toward a spot more behind), then drives. Want it to turn around instead? Add turn to face first. With Tank there is no strafe: a tap on the map adds a turn and a drive, and any strafe in the steps (from Mecanum, the example or pasted Java) becomes a turn, a drive and a turn back, listed above the steps. Mecanum can also strafe (drive sideways).
For the time estimate only: the robot's speed at full power (a step at power 0.5 takes twice as long), and the time each drive or turn needs to slow down and stop. Time a 48 in drive to find yours.
Start spot
Drag the green robot to move it. x right, y away from your wall, inches. Heading: 0 = facing away, 90 = facing left. BIOBUZZ: touch the wall, stay on your half, out of your LOADING ZONE.
Steps
New steps go at the end. To put one between two steps, press the + between them: the buttons (and taps on the map) then add there. The list runs top to bottom. Each drive and turn waits until it is done; Start something starts a part and goes on at once. Drives and turns count from where the robot is, so changing one step moves every step after it. How the steps work
Java
Check it in the simulator
A scenario file runs the auto in FTC-Helper-Lib's simulator with no clicking: it starts it, waits for the end, and checks that every step says done in the autonomous's report (expect step 3 done, by the step's number: drives, turns, waits and actions alike) and that the robot ends near the planned spot. A plan that drives off the field gets no end check, only a note. It needs the v0.17.0 simulator or newer (older ones do not know expect step): update the library first. Scenario files
Edit an auto you have
Paste your autonomous file (or only its steps). The builder reads s.start, move, moveWithTurn, turn, turnTo, waitSeconds, run, action, alongside and parkWithSeconds, with plain numbers only (not Tunables.Auto... names). Anything else is listed, not read.