Feed Time Finder
Find how long the feeder must run to get one piece into the wheel: feedSec.
In Tune and check: yes, when the launcher’s feeder is a CR servo or a motor, with no feed stop, no
pushing parts (.pushedBy(...)) and no feed wheel.
You need: the launcher and its feeder in Robot.java, 5 pieces or more, and eye protection for the test shots.
A robot with a feed stop uses the Feed Stop Finder instead. Its test shots time
the same thing, for feedStopOpenSec. A robot with pushing parts or a feed wheel gets neither finder for
feedSec: tune it by hand (fix it by what you see).
Why test shots
Section titled “Why test shots”A CR servo or motor feeder runs for feedSec per piece, then stops. The time a piece needs changes with
where it sits. A piece near the wheel gets there fast. A piece far back takes longer. feedSec must be long
enough for the piece that starts farthest back.
One test shot does not tell you that. Fire several, from every place a piece can sit in a match. The
finder keeps each time and gives feedSec from the longest.
Get to the Feed Time Finder
Section titled “Get to the Feed Time 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 Time Finder, then press A. - The Feed Time Finder’s INIT screen shows. Nothing moves yet. Press ▶ (start) on the Driver Hub.
-
Wear eye protection, and keep everybody out of the line of fire.
-
Press LB. The wheel spins up to your
speedRpm. -
Load one piece where a piece sits in a match.
-
When the screen says
ready, press RB. The feeder runs at itspower. The finder times the piece from the start of the feed to the shot (the wheel’s speed drops). The feeder stops at the shot. -
Do it 5 times or more. Load each piece in a different place, and the farthest back place more than once. The screen shows the times:
Test shots : 0.31, 0.42, 0.28, 0.45, 0.33 s (5)Shortest / average / longest : 0.28 / 0.36 / 0.45 sfeedSec : 0.55 s (the longest + 0.1); now 0.40 -
Copy the line it shows, for example
Tunables.Feeder: feedSec = 0.55. The section is your feeder’s. -
Press LB to stop the wheel.
Why the extra 0.1 s: a low battery and a worn wheel make the feed slower.
When the finder warns
Section titled “When the finder warns”No shot seen in 3 s: the piece did not reach the wheel. Check that a piece was loaded, and that the feeder turns the right way (itspowersign, or.reversed()in Robot.java). This test shot does not count. A heavy wheel that slows by less thanshotDropRpm(150 by default) gives this warning too, even when the piece fired: makeshotDropRpmsmaller.The times differ by ... s: afeedSeclong enough for the slowest piece can push the next piece in too, when it sits close. SetstopOnShot = truein the feeder’s section. Each feed then stops at the shot, andfeedSecis only the time limit (stop on the shot). WithstopOnShot = true, this warning does not show.Test shot stopped part way: the wheel went off (LB, help, or STOP) before the shot. That test shot does not count.A piece took almost 3 s:feedSeccannot be more than 3 s. Check the feeder’spower, and what slows the piece.
Fix a mistake
Section titled “Fix a mistake”- A bad test shot (no piece, or two pieces loaded): press X. It clears all the times. Then do the 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. 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, not the finder’s screen. Take a photo of the screen, and type the line into
the file. Or copy it from the results file:
| The finder shows | Put it in |
|---|---|
Tunables.Feeder: feedSec = 0.55 |
your feeder’s section (the name in its .tunables("..."), or the feeder’s own name) |
Done when
Section titled “Done when”feedSecis inTunables.java.- In TeleOp, each press of fire sends one piece, from every place a piece can sit.
Something wrong on this page? Tell us with a short GitHub form.