Feed Stop Finder
Find where a launcher's feed stop holds the pieces back, and where it lets one through.
In Tune and check: yes, when the launcher has a .feedStop(...).
You need: the launcher’s Robot.java line with .feedStop(...), 5 pieces, and eye protection for the
test shots.
Get to the Feed Stop Finder
Section titled “Get to the Feed Stop Finder”-
On the Driver Hub, open the TeleOp list and pick Tune and check (group “Finders”). Press INIT.
-
The menu shows. Press D-pad down until the arrow (
>) is on Feed Stop Finder, then press A. -
The Feed Stop Finder’s INIT screen shows. Nothing moves yet. Press ▶ (start) on the Driver Hub.
A feed stop holds the pieces back, and lets one through at a time. This finder finds both positions, for a
launcher with .feedStop("feed_stop") in Robot.java. For such a robot, it is in
Tune and check.
-
Put a piece behind the feed stop. The wheel stays off.
-
A servo’s position is a number from 0 to 1. With the D-pad, pick a start number near where the feed stop sits now (nothing moves yet). A moves the servo there.
-
D-pad up/down moves it by the step. Left/right makes the step smaller/bigger (0.1, 0.05, 0.01, 0.005, 0.001). The step starts at 0.05, and the screen shows it.
-
Where the stop holds the piece firmly, without straining on the frame, press X to save the hold position.
-
Move the feed stop with the D-pad until the piece rolls through freely. Press B to save the release position. A then goes between the two, so you can try them.
-
Copy the line it shows, for example
Tunables.Launcher: feedStopHold = 0.150, feedStopRelease = 0.550. The section is your launcher’s: a launcher onshootersaysTunables.Shooter.
Find the firing times
Section titled “Find the firing times”Two times are in your launcher’s section of Tunables.java. With both positions saved, the finder finds
them too:
| Time | What it does | Start value | The finder finds it |
|---|---|---|---|
feedStopMoveSec |
how long the stop takes to open. The indexer and the pushing parts wait this long before they push | 0.1 s | from the servo’s speed in the parts catalog |
feedStopOpenSec |
the backup time. When the wheel sees no shot, the stop closes after this time | 0.5 s | with test shots |
The stop does not stay open for the whole feedStopOpenSec. It closes as soon as the wheel sees the shot
(the wheel’s speed drops). feedStopOpenSec is a backup, for a piece that does not reach the wheel.
The open time
Section titled “The open time”The finder works out the open time from the angle between hold and release and the servo’s speed from the seller. It adds 25%, because the seller’s speed is with no load. For this, Robot.java must name the servo’s part.
Where: Robot.java, the launcher’s line.
.feedStop("feed_stop", "gobilda-2000-speed") // the servo's catalog idThe screen then shows, for example, Opens in : about 0.25 s (gobilda-2000-speed, +25%).
Why it matters: a goBILDA torque servo that turns from 0.150 to 0.550 needs about 0.6 s. That is much more than the 0.1 s start value. With 0.1 s, the indexer pushes the piece against a stop that is still half closed.
A servo that is not in the catalog: measure the open time with a video (below).
The backup time: test shots
Section titled “The backup time: test shots”-
Wear eye protection, and keep everybody out of the line of fire. Put a piece behind the stop, where it sits in a match.
-
Press LB. The wheel spins up to your
speedRpm. While the wheel is on, the D-pad, A, X and B do nothing, so the positions you saved stay. -
When the screen says
ready, press RB. The stop opens, and the indexer and the pushing parts run as in a match. The finder measures the time until the wheel sees the shot. -
Put the next piece behind the stop. Do 5 test shots in all. The screen shows each time.
-
Copy the times line, for example
Tunables.Launcher: feedStopMoveSec = 0.25, feedStopOpenSec = 0.55. The backup time is the longest test shot plus 0.2 s, because a low battery or a worn piece is slower. -
Press LB to stop the wheel.
When you change hold or release after the test shots, the finder clears the old times: do the test shots again.
When the finder warns
Section titled “When the finder warns”No shot seen in 3 s: the piece did not reach the wheel. Check the release position (the piece must roll through freely). With.pushedBy(...), try a largerassistSec. A heavy wheel that slows by less than 150 RPM gives this warning too, even when the piece fired. In that case, measure the time with a video (below).2 pieces in one opening: the next piece got past before the stop closed. Check that the hold position catches the next piece. Pieces that sit tight against each other can slip through together: a gap between them, or a faster servo, helps.
Check the times in TeleOp
Section titled “Check the times in TeleOp”To check the times as the robot fires in a match, use the PRACTICE profile (profiles): the debug lines show only there. Fire 5 to 10 pieces, and read:
Last feed ended : shot seenshot seen for every piece is right. backup time means that the stop closed before the wheel saw a shot:
do the test shots again, or measure with a video.
Measure the times with a slow-motion video
Section titled “Measure the times with a slow-motion video”Use a video only when the finder cannot find a time. This happens with a servo that is not in the catalog, or with a heavy wheel that the finder cannot see slow down. A phone’s slow-motion video shows what happens too fast for your eyes.
- Film the feed stop and the wheel from the side, in slow motion. Use 240 frames a second, if the phone can.
- Fire one piece.
- Go through the video one frame at a time, and count the frames:
- The open time: from the frame where the stop starts to move to the frame where it is fully open.
- The piece time: from the frame where the stop starts to move to the frame where the piece touches the wheel.
- Change frames to seconds: time = frames ÷ frames a second. For example, 60 frames at 240 frames a second is 0.25 s.
- Do it 3 times, and use the longest of each time.
- Set
feedStopMoveSecto the open time, rounded up to the next 0.05 s. SetfeedStopOpenSecto the piece time plus 0.2 s.
Why extra time: a low battery makes the parts slower, and a worn piece can roll slower.
Fix a mistake
Section titled “Fix a mistake”- Saved the wrong hold or release: move to the right place and press the same button (X or B) again. The new position replaces the old one. While the wheel is on, press LB first to stop it.
- A bad test shot (no piece, or a piece that was not loaded right): stop the wheel with LB, then press X. It saves the same hold again and clears all the test shots. Then do the 5 test shots again.
- A test shot that saw no shot does not count. Its time is not used.
Start over: press STOP, then INIT, and open the tool again. It starts empty: nothing carries over. The lines saved at STOP stay in the results file, the newest at the end.
Put the numbers in your code
Section titled “Put the numbers in your code”The robot uses Tunables.java and Robot.java, not the finder’s screen. Take a photo of the screen,
and type each line into the file. Or copy it from the results file:
| The finder shows | Put it in |
|---|---|
Tunables.Launcher: feedStopHold = 0.150, feedStopRelease = 0.550 |
your launcher’s section (a launcher on shooter: Tunables.Shooter) |
Tunables.Launcher: feedStopMoveSec = 0.25, feedStopOpenSec = 0.55 |
the same section |
Done when
Section titled “Done when”feedStopHold,feedStopRelease,feedStopMoveSecandfeedStopOpenSecare inTunables.java.- In 5 test shots, the wheel saw every shot, and no shot let 2 pieces through.
Next: Drive Tuner: wheel size and strafe correction.
Look it up: Launcher.
Something wrong on this page? Tell us with a short GitHub form.