The BIOBUZZ starter bots: robot files and code
For: a team with one of these starter bots (A starter bot in Pick your start), or anyone who wants a ready robot to try in the simulator. For each starter bot, you find its configuration names and what its code does differently. At the end: what to change when you changed the robot.
Each seller in FTC (REV, goBILDA, AndyMark, Studica) gives away the design of a simple “starter bot” for the season. For 2026-27 (BIOBUZZ), we wrote one robot file for each, so the simulator has real, different robots to test with. goBILDA has two: the standard StarterBot (6-wheel tank drive) and the StarterBot with mecanum wheels, built on a Strafer chassis. That makes five. They are also worked examples for the robot-file skill (robot-file-skill.md): every number has a note that says where it came from.
| Robot file | Drive | Intake | Scores with | Size in the simulator |
|---|---|---|---|---|
| starter-bot-rev.properties | 6 wheels, 2 motors | flap wheels (Core Hex) | flywheel + CR-servo feeder | 17.5 x 17.2 in, 15.0 in tall (20.0 in wide with the poker out) |
| starter-bot-gobilda.properties | 6 wheels, drop center, 2 motors | Gecko wheels (motor + 2 CR servos) | flywheel + CR-servo “windmill” | 17.8 x 16.8 in, 12.0 in tall |
| starter-bot-gobilda-strafer.properties | 4 mecanum wheels (Strafer), 4 motors | Gecko wheels (motor + 2 CR servos) | flywheel + CR-servo “windmill” | 17.8 x 17.8 in, 12.2 in tall |
| starter-bot-andymark.properties | 4 wheels, belts, 2 motors | rubber-band rollers (CR servo) | rubber-band catapult | 17.2 x 17.7 in, 17.5 in tall |
| starter-bot-studica.properties | 2 driven wheels + 2 omni | 4 wheels (motor) | flywheel + servo flap | 14.0 x 15.0 in, 13.0 in tall |
Code for each one: every kit bot is also a robot in five files with the seller’s configuration names:
gobildabot,
gobildastraferbot,
revbot,
andymarkbot and
studicabot. To copy one into
your TeamCode, read Start from a starter bot. The library has no
catapult part (AndyMark), and it cannot put a gear between a flywheel motor and its wheel (Studica). Those
two files use the closest part and say so. Each file names each part’s motor or servo (.part(...), or the
motor’s id in a launcher’s brackets). So the starting values are those parts’ real numbers. Some parts are
not in the parts catalog: Studica’s Maverick motors and Multi-Mode Smart Servo, and AndyMark’s High Speed
programmable servo. The files describe them with Motors.custom(...) and Parts.customServo(...) and the
seller’s numbers.
The autonomous programs (autos/) are the same for all five. Each starts at the simulator robot file’s
start spot: back against your wall, 56 in left of the center. mirrorForRed() returns false. BIOBUZZ’s
field is turned half a turn between the alliances (not mirrored). So the same route works for both
alliances, when each one drives it from its own wall.
Shooting in the simulator: only the two goBILDA bots shoot. The REV, AndyMark and Studica files have no
shoot. line, because their sellers do not publish the launch direction and angle. So their launchers spin,
but no piece flies. Their flywheels may also not reach “ready” in the simulator: the stand-in motor numbers
are guesses (see each robot below).
All five fit the 18 in start cube, and 18 x 24 x 29 in at full reach. Each has a scenario in
sim/scenarios/starter-bot-*.sim, so they run in the automatic tests. The scenario loads the robot with a
robot ../robots/... line, checks the size rules, rolls the robot forward by hand and checks for no error.
To drive one in the simulator (-Probot= picks the robot file):
Where: Android Studio’s Terminal tab, in the ftc-helper-lib folder (type cd ftc-helper-lib first).
./gradlew :sim:run -Probot=sim/robots/starter-bot-gobilda.propertiesTo run its scenario (-Pfile= picks the scenario file):
Where: Android Studio’s Terminal tab, in the ftc-helper-lib folder (type cd ftc-helper-lib first).
./gradlew :sim:scenario -Pfile=sim/scenarios/starter-bot-gobilda.simHow sure the numbers are: goBILDA and AndyMark publish STEP CAD files. We measured them on a laptop (the bounding box of each part: the smallest box around it) and wrote down only the numbers. So their sizes and part positions are measured. REV’s CAD is on Onshape, which needs a sign-in. Studica’s STEP download sits behind a browser check. So we worked out their sizes from the part lengths in the build guides and the photos, and marked them “est.” in the file. No seller’s CAD is in this repository: nobody checked the licenses, and the robot files hold only our own numbers.
Same for all five:
- The start pose is x = -56, with the back against the red wall (field file: inside face at y = -70.585).
- No seller states the game-piece capacity, so
holds=4is the game’s limit. - The motor directions come from the sellers’ code, where it has them.
The configuration names
Section titled “The configuration names”Make the robot configuration on the Driver Station with these names (how).
They are the names in each seller’s own code, so the template runs on the starter bot as it is. Use the
port that each wire is in on your robot. Leave the imu line as it is (the Control Hub’s own IMU). When a motor
type is not in the Driver Station’s list, pick the closest one: the library takes the motor’s numbers from
Robot.java.
goBILDA:
| Name | Kind | What it is |
|---|---|---|
left_drive, right_drive |
Motor (goBILDA 5202/3/4 series) | the drive motors (312 RPM) |
intake |
Motor (goBILDA 5202/3/4 series) | the intake roller (117 RPM) |
launcher |
Motor (goBILDA 5202/3/4 series) | the flywheel (a 312 RPM motor with its gearbox taken off) |
left_intake_servo, right_intake_servo |
Continuous Rotation Servo | the two corner wheels |
windmill |
Continuous Rotation Servo | the feeder |
goBILDA with mecanum wheels (Strafer): the same mechanisms, four drive motors, and one other name: the
feeder is windmillServo.
| Name | Kind | What it is |
|---|---|---|
left_front_drive, right_front_drive, left_back_drive, right_back_drive |
Motor (goBILDA 5202/3/4 series) | the drive motors (312 RPM) |
intake |
Motor (goBILDA 5202/3/4 series) | the intake roller (117 RPM) |
launcher |
Motor (goBILDA 5202/3/4 series) | the flywheel (a 312 RPM motor with its gearbox taken off) |
left_intake_servo, right_intake_servo |
Continuous Rotation Servo | the two corner wheels |
windmillServo |
Continuous Rotation Servo | the feeder |
REV:
| Name | Kind | What it is |
|---|---|---|
leftDrive, rightDrive |
Motor (REV UltraPlanetary HD Hex) | the drive motors (20:1) |
intakeMotor |
Motor (REV Core Hex) | the intake |
flywheel |
Motor (REV HD Hex) | the flywheel (no gearbox) |
crServo |
Continuous Rotation Servo | the feeder roller |
pollenServo |
Servo | the pollen pusher (“poker”) |
AndyMark:
| Name | Kind | What it is |
|---|---|---|
left_drive, right_drive |
Motor (the closest NeveRest type) | the drive motors (NeveRest Hex 19.2:1) |
rollerI |
Continuous Rotation Servo | the intake rollers |
rollerF |
Continuous Rotation Servo | the flower roller (the “stick” version has a stick Servo instead) |
catapult |
Motor (the closest NeveRest type) | the catapult (NeveRest Hex 50.9:1) |
Studica:
| Name | Kind | What it is |
|---|---|---|
leftDrive, rightDrive |
Motor (the closest type to a Maverick 50.9:1) | the drive motors |
Intake |
Motor | the intake (Maverick 3.7:1) |
FlyWheel |
Motor | the flywheel (Maverick 1:1) |
fwActuator |
Servo | the flap that pushes each piece into the wheels |
Capitals count: Studica’s Intake and FlyWheel start with a capital letter.
REV DUO FTC Starter Bot
Section titled “REV DUO FTC Starter Bot”Sources, read 2026-10-16: the starter bot page, its build guide (PDF, 126 pages), and the TeleOp code and configuration page. CAD (not used, it needs a sign-in): Onshape.
Modeled:
- the tank drive (
leftDrive,rightDrive: 20:1 UltraPlanetary HD Hex, 90 mm wheels, 1:1 chain). - the intake roller (
intakeMotor, Core Hex). - the flywheel (
flywheel, HD Hex at 1:1, two 90 mm grip wheels) on its frame. - the feeder roller (
crServo, Smart Robot Servo in CR mode). - the pollen pusher (“poker”,
pollenServo), as an arm on the left side.
It collects POLLEN.
Not modeled or not published:
- The shot: its CR-servo feeder could be the launcher’s
feeder=. But REV’s pages do not give the flywheel’s target speed or the launch angle, so there is noshoot.line. - Sizes: all estimated (nobody measured CAD). The page does not give the pollen pusher’s preset positions. The model swings it 0 to 90 degrees out to the side, a guess.
- The real pusher swings up and down, out to the side. The simulator’s arm always points forward from its hinge, so the simulator draws it turning about “up” instead.
REV bot code
Section titled “REV bot code”revbot is this robot in five
files (The five files walks through them). The configuration
names are the ones in REV’s own code, so it runs on that robot as it is. These facts are not in the code’s
comments:
- Drive: REV’s code does not reverse a drive motor, so the library’s default (the left side reversed) is a guess. If the robot spins when you push the stick forward, change it (Robot.java). REV does not say which way each motor turns: check them all on your robot.
- Intake: REV’s code takes POLLEN in with the right bumper and pushes it out with the right trigger.
REV’s page does not say which power sign is “in”. If the intake pushes out when it should take in, add
.reversed()to its line. - Launcher: the HD Hex motor runs at 1:1 (its gearbox is off), so
"rev-hd-hex"gives it the 6000 RPM motor’s numbers. The feeder roller is a Smart Robot Servo V2 (Balanced) in continuous (CR) mode. REV’s code spins the flywheel “to the target velocity”, but the page does not give the number.speedRpm = 3000is a guess, and so is the feeder’s 0.4 s per piece. Find kF and kP with the Flywheel Finder. Then find the speed by watching shots. - Fire all (Y): the launcher spins up. As soon as the wheel is at speed, it feeds the pieces one by one. It uses only the launcher, so the driver can still run the intake. With fewer than 4 pieces, the feeder only turns a few more times.
- Poker: a Smart Robot Servo V2 (Balanced) with two spots, as in REV’s code. A =
down: out over a FLOWER, to comb POLLEN out of it. B =up: folded along the side, the start. REV’s page has no numbers for them, so both areMEASURE. INIT stops until you measure them with the Servo Finder and write them inTunables.java. Why: a guess could swing the poker into the frame. The simulator’s REV robot file has stand-ins for them, so it runs before you measure. Nothing moves at INIT, so the code does not fold the poker. Fold it by hand before INIT, so the robot fits the 18 in start cube. The poker first moves when A, B or an action sends it. - Buttons: one driver on gamepad 1, with each part’s usual buttons written out (LB flywheel on/off, RB fire
one, D-pad up/down speed +/- 100 RPM). So this robot drives like the other examples. REV’s code puts
the intake on RB and RT, and runs the feeder by hand on the D-pad. If your drivers want REV’s layout,
change the buttons in
Controls.java. - Autonomous (
autos/): REV’s own autonomous is not on its page, so this is a simple first one. It fires the preloaded pieces, then drives off the start line in the last 3 s.
goBILDA FTC StarterBot
Section titled “goBILDA FTC StarterBot”Sources, read 2026-10-16: the resource guide page, its assembly instructions (PDF, 37 pages), example code (ZIP) and STEP CAD (ZIP), measured.
Modeled:
- the drop-center 6-wheel tank drive (
left_drive,right_drive: 19.2:1 Yellow Jacket, 96 mm wheels, 30T to 30T gears). - the intake (
intake, 50.9:1, seven 48 mm Gecko wheels), and the two flat 72 mm Gecko wheels at the front corners (left_intake_servo,right_intake_servo, CR servos). - the launcher (
launcher, a 19.2:1 converted to 1:1, one 96 mm Hogback wheel) under the hood gridplate. - the
windmillfeeder CR servo.
It collects POLLEN and shoots. The launcher’s feeder=windmill is the CR servo. The shot leaves up and
backward at 147 degrees from forward, because the hood rises 33 degrees toward the back in the CAD. So the
simulator’s shot arc says “shoots backward, 33° up” for it.
Its autonomous, goBILDA Bot Launch and Back Up, starts with the robot’s back against your wall, left
of center (x -56, y -62.95, facing the field). The simulator puts it there at INIT. It fires the preload up
and back over the robot, then drives Away from the wall (forward 4.7 in, at power 0.4). Its frame is 15.1 in long (17.8 in with the intake wheels), so at y -62.95 its center is
7.6 in from the wall’s inside face (y -70.585). goBILDA’s code
launches for 10 s. Here the launch ends as soon as the feeder sends the last piece.
goBILDA bot code
Section titled “goBILDA bot code”gobildabot is this robot in
five files. Part by part:
- Drive: one motor per side. The right one runs reversed, as in goBILDA’s code.
- Intake: the roller’s motor is the 117 RPM Yellow Jacket (50.9:1, 5203-2402-0051). The two corner
wheels are goBILDA Speed servos in CR mode. They run with the roller, as in goBILDA’s code. The intake
carries 4 POLLEN and no NECTAR (a NECTAR is too big for it):
.holds(4).holds(0, "NECTAR"). So the simulator’s intake does not take a NECTAR. Count yours by hand (Tuning). - Launcher: a 312 RPM motor with its gearbox taken off (1:1, 28 counts per turn). Those are the
6000 RPM motor’s numbers, so its id is
gobilda-5203-6000. - Windmill: a 2000 Series Torque servo (2000-0025-0002) in CR mode. It runs reversed, as in goBILDA’s
code (
Direction.REVERSE). - Each part names its motor or servo from goBILDA’s build guide, so the starting values and the simulator use that part’s real numbers.
The TeleOp buttons (oneDriver = true: one driver does everything on gamepad 1, like goBILDA’s TeleOp):
- Left stick forward/back drives, and right stick X turns. Left stick click: slow on/off.
- RT runs the intake in, and LT runs it out, while you hold the trigger.
- LB spins the flywheel up and down. RB fires one piece when the wheel is at speed. Hold RB to keep firing.
- Y fires all four preloads (
Actions.fireAll). Hold RT at the same time to help push them in. The action uses only the launcher, so the intake stays free for the driver. - D-pad up/down: flywheel speed +/- 50 RPM.
One difference from goBILDA’s code: there, RB also spins the wheel up. Here LB spins it up too, so the driver can spin up early and fire the moment the shot lines up. RB alone also works: it spins up first, then fires.
Not modeled or not published:
- goBILDA does not publish the exit angle and speed of a shot. We estimated them from the hood, and
share=0.5is the default. - The 100T/20T gear pair on the intake: the guide does not make clear which gear is on the motor. The simulator does not use it anyway, because a roller only needs to turn.
- The simulator does not draw the lower 264 mm roller of small “Intake Roller” parts at the front.
- No source states which side
left_intake_servois on.
goBILDA FTC StarterBot with Mecanum Wheels
Section titled “goBILDA FTC StarterBot with Mecanum Wheels”Sources, read 2026-11-09: the resource guide page,
the Strafer Chassis Kit page,
example code (ZIP) and
STEP CAD (ZIP), measured with tools/cad/robot_cad.py.
This is the same robot as the goBILDA StarterBot above, on a different chassis. It uses the 2026-2027 FTC Starter Kit, a Strafer Chassis Kit and two Flat Pattern Mounts.
Modeled: a mecanum drive (left_front_drive, right_front_drive, left_back_drive, right_back_drive:
312 RPM Yellow Jackets through 1:1 miter gears, 104 mm GripForce mecanum wheels). The intake, corner
wheels, launcher and windmill are the same as on the 6WD bot, measured again in this robot’s CAD. Here the
hood sits at a 37-degree tilt, so the shot leaves up and backward at 143 degrees from forward.
goBILDA’s mecanum code is a TeleOp only. Its autonomous here, goBILDA Strafer Bot Launch and Leave, is
ours. It starts with the back against your wall, like the 6WD bot’s, and fires the preload. Then it drives
Leave forward (20 in, a starting guess: the number is in the step).
goBILDA Strafer bot code
Section titled “goBILDA Strafer bot code”gobildastraferbot is
this robot in five files. It is the goBILDA bot’s code with three changes:
- Drive:
Drive.mecanum(...)with goBILDA’s four names. The two left motors run reversed, as in goBILDA’s code. - The feeder’s name is
windmillServo, so its numbers are inTunables.WindmillServo. - The left stick also slides the robot sideways (left stick X), as in goBILDA’s code.
The TeleOp buttons are the 6WD bot’s, plus the sideways slide.
Not modeled or not published:
- goBILDA does not publish the exit angle and speed of a shot. We estimated them from the hood, and
share=0.5is the default. - In the CAD, the drive wheels sit 24 mm behind the frame’s center. The simulator turns the robot about the frame’s center.
- No source states which side
left_intake_servois on.
AndyMark Robits BIOBUZZ StarterBot
Section titled “AndyMark Robits BIOBUZZ StarterBot”Sources, read 2026-10-16: the kit page (parts list), the StarterBot page with the assembly guide, user manual, TeleOp code and STEP CAD (roller flower version), measured by subassembly.
Modeled:
- the skid-steer tank drive (
left_drive,right_drive: NeveRest 19.2:1, 3 in Stealth and omni wheels, 40T to 40T, belts). - the intake rollers (
rollerI, CR servo) and the intake frame. - the hopper.
- the electronics and Control Hub.
- the launcher frame on the left side (
catapultmotor, NeveRest 50.9:1, as a free-spinning motor). - the flower roller on the right side (
rollerF, CR servo). - the
stickservo of the other flower version (not drawn).
It collects POLLEN.
Not modeled or not published:
- The shot: the simulator has no part for a catapult that a motor winds and rubber bands throw. AndyMark does not publish its release angle, which the hood sets.
- The NeveRest Hex gearmotors (the drive’s am-5442, am-5550-0100-019 in the CAD, and the catapult’s am-5443) are not in the parts catalog. The files use the NeveRest Orbital 20 and 50 (the same motor and ratio). AndyMark’s page gives only “~344 RPM” and “~130 RPM”.
- The drivetrain has its own guide (ROBITS Starter Chassis), which we did not read. The 1:1 gears and the wheel base come from the CAD. We estimated the track width, because each side is in its own CAD frame.
- We estimated the intake rollers’ exact place inside the intake subassembly.
AndyMark bot code
Section titled “AndyMark bot code”andymarkbot is this robot
in five files (The five files walks through them). The
configuration names are the ones in AndyMark’s own code (RobitsStarterBotTeleop), so it runs on that robot
as it is. These facts are not in the code’s comments:
- Drive: the kit’s NeveRest Hex 19.2:1 is the same motor and ratio as the NeveRest Orbital 20, so the
code uses
"am-neverest-orbital-20". The right motor runs reversed, as AndyMark’s code sets it. - Intake:
rollerIruns reversed (REVERSE in AndyMark’s code), and the flower rollerrollerFruns with it. Their servo is the kit’s 4-wire Programmable Servo, High Speed (am-4955a), in continuous mode. It is not in the parts catalog. SoParts.customServo("am-4955a", 300, 0.05)describes it with AndyMark’s numbers: 300 degrees, 0.05 s per 60 degrees at 6 V (the only speed listed; am-4955, read 2026-10-23). AndyMark’s code runs the rollers at full power both ways. - The catapult (a NeveRest Hex 50.9:1, am-5443, the same as the NeveRest Orbital 50; REVERSE in
AndyMark’s code) winds rubber bands and lets go once per turn. The library has no catapult part. The
closest real part is an
Indexeron a motor. It runs the motor at a set power (power, 0.65 from AndyMark’s code) for a set time (feedSec) per press. TunefeedSecso that one press is one turn of the catapult. That is one throw, and the arm stops ready for the next. With no load, the motor turns at about 130 RPM, so one turn at 0.65 power takes about 0.7 s. The rubber bands make it take longer, so 0.8 s is a starting guess. The catapult has no sensor, so the library does not know when it is wound or lets go. So the library cannot wait for “ready” the way it does for a flywheel launcher. AndyMark’s own code runs the motor for as long as the driver holds the trigger. - Throw all (Y): throws up to 4 pieces (the game’s limit), one turn each. The hopper feeds the next
piece by gravity, so there is a short wait between throws (0.5 s, in
Actions.java). - The flower “stick” version: the flower mechanism has a second version, with a
stickservo instead of the roller. For that version, take"rollerF"out of the intake line, and add the commentedstickline inRobot.java(Tunables.Stick: in = 0.46, out = 0.65). AndyMark does not say which of the kit’s servos the stick has. Use the one on yours ("am-4955a"if it is a High Speed servo too). - Buttons: one driver on gamepad 1, with each part’s usual buttons written out (RT intake in, LT out, RB
throws one piece). So this robot drives like the other examples. AndyMark’s code puts the intake on the
bumpers (LB in, RB out), and runs the catapult while the driver holds RT. If your drivers want
AndyMark’s layout, change the buttons in
Controls.java. - Autonomous (
autos/): AndyMark’s own autonomous is not on its page, so this is a simple first one. It throws the preloaded pieces, then drives off the start line in the last 3 s. AndyMark’s manual says to shoot from against the field wall, with the launcher in line with the goal.
Studica FTC Starter Bot
Section titled “Studica FTC Starter Bot”Sources, read 2026-10-16: the resource guide page, its build guide (PDF, 64 pages, version 1.0 of 12 Sept 2026), the Blocks code picture on that page, and the Maverick motor page (speed and encoder counts for every ratio). The pages are behind a browser check, so we read them in a browser. STEP CAD: ZIP, not downloaded.
Modeled:
- the tank drive (
leftDrive,rightDrive: Maverick 50.9:1 through 36T bevel gears to 100 mm wheels, omni wheels behind). - the intake (
Intake, Maverick 3.7:1, four 50 mm wheels). - the flywheel (
FlyWheel, Maverick 1:1, three 100 mm wheels). - the hood.
- the
fwActuatorservo (positions 0 and 0.2 in the code).
The Maverick motors are not in the parts catalog, so rpm= and ticksPerRev= come from Studica’s table.
It collects POLLEN.
Not modeled or not published:
- The shot: the servo flap could be the feeder (with
feeder=, a servo feeds while it is more than 0.15 from where it starts). But Studica does not publish the launch direction and angle, so there is noshoot.line. - The flywheel turns at half the motor’s speed (13T to 26T bevel gears). The simulator takes the rim speed
straight from the motor, so a
shoot.line would needshare=halved. - Sizes: all estimated (nobody measured CAD). The Multi-Mode Smart Servo is not in the parts catalog, and
the kit page does not give its speed. So this file moves it at
servo.speed. Studica’s servo page, read 2026-10-23, gives 300 degrees, 0.25 s per 60 degrees at 4.8 V.studicabot/Robot.javauses these.
Studica bot code
Section titled “Studica bot code”studicabot is this robot
in five files (The five files walks through them). The
configuration names are the ones in Studica’s own Blocks code, so it runs on that robot as it is. These
facts are not in the code’s comments:
- The Maverick motors and the Multi-Mode Smart Servo are not in the parts catalog. So
Motors.custom(...)andParts.customServo(...)describe them with Studica’s own numbers. The speed at 12 V and encoder counts per output turn come from the Maverick page. The servo’s numbers come from the servo page. We read both on 2026-10-23. The starting values and the simulator then use the real parts. - Drive: two driven 100 mm wheels at the front (Maverick 50.9:1, bevel gears 1:1) and two free omni wheels at the back. The library reverses the left side by default, as Studica’s code does.
- Intake: Studica’s code runs it at power 1 (in) on the right bumper and -1 (out) on the left bumper.
- Launcher: three 100 mm wheels on a Maverick 1:1, through 13T to 26T bevel gears, so the wheels turn
at half the motor’s speed. The library’s launcher cannot take a gear between the motor and the wheel.
So its speed numbers (
speedRpm, the D-pad’s +/- 100) are the MOTOR’s, not the wheel’s. Studica’s code runs the flywheel at the right trigger’s power, with no set speed. The motor’s top speed is 6100 RPM, so 4000 is a starting guess with room to speed up. Tune it by watching shots. - The flap (
fwActuator) pushes each piece into the wheels: rest = 0 and push = 0.2, from Studica’s code (X and A). The flap goes to rest when the OpMode starts (▶). Your servo’s horn may sit differently from Studica’s, so measure both with the Servo Finder BEFORE the first TeleOp. The push and return times are guesses. - Fire all (Y): the launcher spins up. As soon as the wheel is at speed, the flap pushes the pieces in one by one. It uses only the launcher, so the driver can still run the intake.
- Buttons: one driver on gamepad 1, one stick to drive, and each part’s usual buttons written out. So
this robot drives like the other examples. Studica’s code drives “tank style” (each stick runs one
side). It puts the intake on the bumpers, the flywheel on RT and the flap on X and A. If your drivers
want Studica’s layout, change the buttons in
Controls.java. - Autonomous (
autos/): Studica’s own autonomous is not on its page, so this is a simple first one. It fires the preloaded pieces, then drives off the start line in the last 3 s.
You changed your starter bot
Section titled “You changed your starter bot”Start from your starter bot’s code (Start from a starter bot). Then make your changes one at a time: change, build, check. Why: when something breaks, you know which change did it.
Keep the seller’s names for every part you did not change. Why: the template, the starter bot’s robot file and the notes on this page all use them.
A part added
Section titled “A part added”- The configuration: a name for its port (small letters,
_between words:intake_deploy). Robot.java: a field at the top of the class, and anadd(...)line indefine(), with.part(...)for its motor or servo (the parts, the parts catalog, short recipes in the cookbook). When the part is not built yet, add.optional(), and the code runs without it (parts not on the robot yet).Tunables.java: its section, named after the device in CamelCase (intake_deployreadsTunables.IntakeDeploy). WriteMEASUREfor each position and limit, andDEFAULTfor the rest (DEFAULT and MEASURE). Why: INIT then stops until a finder gives the real number, so a guess never pushes the part into the frame.- Buttons:
Controls.javawrites out each part’s buttons. So a part you add has no buttons until you write its lines there (each part’s “buttons to add” in the reference). To move a button, or add a job, editControls.java(Controls.java). For several parts together, write an action inActions.java(Actions.java). - When you changed the intake, or where the pieces ride: count again how many pieces fit (POLLEN,
NECTAR, a mix). Then change
.holds(...)on the intake’s line (Tuning).
A part taken off
Section titled “A part taken off”- Delete its
add(...)line and its field inRobot.java, and its section inTunables.java. - Build. Android Studio marks in red every line that still uses the part (in
Controls.java,Actions.javaandautos/). Delete or change each one. - Take its name out of the configuration.
A motor, servo or wheel changed
Section titled “A motor, servo or wheel changed”- Change its
.part(...)(for a drive:.motor(...)and.wheelMm(...)). TheDEFAULTnumbers follow the new part. Numbers that you wrote inTunables.java(a flywheel’skF, a speed) may now be wrong: measure them again with the finder. - When a drive motor changed, do the Hardware Check and the motor directions again. Later, run the Drive Tuner again.
- In the configuration, change that port’s motor type.
A part moved, or a new shape
Section titled “A part moved, or a new shape”The robot code does not change, unless a servo’s positions changed. Then run the Servo Finder again. Only
the simulator’s robot file changes: the part’s place and size
(Edit robot in the simulator page, or looks(...) in
Robot.java: shapes).
The simulator’s robot file
Section titled “The simulator’s robot file”Start from your starter bot’s measured file: copy sim/robots/starter-bot-<seller>.properties to
simulator/robot.properties in your robot project. After each change, run ./gradlew :sim:fromRobot
from the ftc-helper-lib folder. It adds a line for each new part, marked TODO measure
(a robot file from Robot.java). The lines of the copied file
are yours, so it does not delete them. For a part you took off, delete its lines (and its shape. lines)
by hand. When a line in the file and your code disagree, the tool stops and says why: fix that line by
hand. Then measure the robot and write the real sizes on the TODO lines.
Your names on the Driver Station
Section titled “Your names on the Driver Station”Change the names in @TeleOp(name = ...) and @Autonomous(name = ..., preselectTeleOp = ...), and
group = "Examples", to your own. preselectTeleOp must be the TeleOp’s name exactly.
A worked example: team 8938’s robot 1
Section titled “A worked example: team 8938’s robot 1”Team 8938 started from goBILDA’s starter bot (its pages). The table shows what they changed, and what each change needed:
| Change | Configuration | Code |
|---|---|---|
| an intake that folds up at the start, pushed over by a servo at ▶ | intake_deploy (Servo) added |
a Positioner with .optional(); Tunables.IntakeDeploy: stowed and deployed are MEASURE (Servo Finder); an action that pushes it over at ▶, and X to push it again |
| corner wheels driven from the intake through gears, not by servos | left_intake_servo, right_intake_servo taken out |
the .withCrServos(...) part of the intake line deleted; the new wheels are only shapes for the simulator |
| a flywheel on a sliding mount and a ramp that sends shots out of the back | none | only shapes and the shot angle (.shotAngle(147)) for the simulator |
| new buttons (B: intake on/off) | none | Controls.java |
They worked on the robot in the tuning order. First came the Hardware Check, the Servo Finder and the Flywheel Finder. Then, on a block at 0.4 power, came the motor directions and the first drive, and each mechanism. Last came the Drive Tuner and the autonomous.
What the simulator could not express (input for its next stages)
Section titled “What the simulator could not express (input for its next stages)”- A gear between a flywheel motor and its wheel. Studica has 2:1 bevel gears. The simulator takes the
rim speed straight from the motor, so the stand-in is
share=halved on theshoot.line.gear=on a flywheel shape does not change the shot. - A catapult. AndyMark’s rubber-band catapult: a motor winds it, and it lets go at the top of each turn.
A stand-in is possible: the motor as a
flywheelwithfeeder=itself, and a fixedspeed=(in/s) on theshoot.line. It needs someone to film a real shot first. The AndyMark file does not do this yet. - An arm that reaches sideways and swings up/down (REV’s poker).
axis=uponly swings an arm flat. To swing it up and down while it reaches sideways, the simulator needs a second hinge. - Shot direction and angle: no seller publishes them, and a shot needs them.
- Motors not in the catalog: Studica Maverick (every ratio) and the AndyMark NeveRest Hex gearmotors. Studica’s Multi-Mode Smart Servo and AndyMark’s programmable servos are not in it either.
Something wrong on this page? Tell us with a short GitHub form.