Drive train
The Drive train tab: each wheel's contact point, the drive motors, the odometry pods, and what the robot works out from them.
Drivetrain and odometry pods
For drive wheels and odometry pods, the placement is a measurement the robot uses. Sync copies the active design to the Control Hub as robot_design.json, so each robot drives by its own design.
Drive motors
Select a drive motor to see its Motor group:
- Free speed: the RPM from the motor's label or datasheet, such as 312 or 435.
- Wheel diameter: from the wheel's datasheet, such as 96 mm.
- Direction: which way it turns for positive power. If a motor is mounted the other way round, change it. Check on the bench by setting its power from the Live Robot tab. Not set keeps what the code sets.
The robot takes a wheel's side from its name (frontLeft is always front left) and only the distances from its placement. A wheel dragged to the wrong side can't flip the drive; the drivetrain readout warns instead.
Every motor has Direction. A mechanism's motor (flywheel, intake) also has Free speed and Gear ratio: mechanism turns per motor turn (1 = direct drive, 0.5 = a 2:1 reduction).
A mechanism's motor also says what it turns, for the simulator: Load inertia (kg·m² about the motor's gearbox output, which sets how long the mechanism takes to speed up) and Load drag (N·m at the gearbox output, which slows its top speed). A value set here replaces the load the motor's @Motor annotation gives, so a test bed and a competition robot sharing code can each have their own; Not set keeps the code's. The simulator prints a line when both give one. The library's docs/simulation.md, "Estimating J", shows how to work out the inertia.
Servos

Select a servo to see its Servo group:
- Direction: which way it turns as its position rises (for a continuous-rotation servo, for positive power). The robot code is written for the servo turning forward; a servo programmed or mounted the other way round needs Reversed, which sends each position the other way, as the SDK's
setDirectiondoes. Check on the bench by raising its commanded position from the Live Robot tab and watching it. Not set keeps what the code sets.
A positional servo also has:
- Model: which servo it is: a goBILDA 2000 Series Torque, Speed or Super Speed, or a Proton Torque or Speed. Simulate Robot turns the servo at that servo's speed, in degrees per second, over its Range (or the servo's own range when the range is not set); the robot itself doesn't need it. The speed is the servo's no-load speed: the simulator does not model load, so a servo carrying an arm or a turret takes longer on the robot than in the simulation. Not set: the simulator turns it at the Torque servo's speed. A model this version doesn't know shows as unknown, in the error colour, and the Design tab reports it.
- Range: how many degrees it turns from position 0 to position 1. A servo's position runs from 0 to 1, with 0.5 at the centre of its travel. To measure the range, set its commanded position to 0.3, then 0.7, on the Live Robot tab, and multiply the angle it turned by 2.5. With a range, an angle from the centre is a position: 0.5 + angle ÷ range, so a 180° servo is at 0.25 for -45° and 1 for +90°. The robot code can use it for its own angles (the library's
ServoRanges), so a robot with a different servo needs no code change. Not set: no range. - Limits: tick Limit its travel to set the lowest and highest positions the library may send the servo: in degrees from the centre once the range is set, positions until then, and saved as positions, so they stay put if the range is measured again. A position past them typed on the Live Robot tab, or an angle the code asks for, is refused and says why; it is never moved to the limit. A position the code sends itself with
setPositiongoes to the servo as it is. Limits that would leave a named position past them, or a lower limit above the upper, are refused where they are typed: the box turns red, the reason shows beneath it, and nothing is saved until it is put right. A limit typed in degrees is saved rounded outward, so the robot takes the angle it was set to. Unticked, nothing is limited. - Positions: one box for each position the robot code sends the servo by name, such as a gate's Open and Closed, which the code lists on the servo (
@ServoDevice(positions = {"open", "closed"})). Tick one to set it: in degrees from the centre once the range is set, positions until then, and saved as positions, as the limits are. Use current value beside one sets it to where the servo is on the connected robot: move it there first from the Live Robot tab (itscommandedPosition). Each must be within the limits: one past them is refused where it is typed, in red with the reason beneath, and not saved. One left unticked is not set, and the code decides what to do without it; a gate servo, for one, stays where it is and says so on the Driver Station.
What a device entry does not hold
A device's name is its name in the robot's configuration on the Driver Station, and nothing else: which hub and port it is plugged into lives in that configuration, not in the design, so Robot Designer can't warn about two devices sharing a port or add up current per hub. A touch, colour or distance sensor has no model or range in the design; Simulate Robot gives each a fixed stand-in. A continuous-rotation servo has no Model (only a positional servo has one) and a servo has a Range in degrees but no pulse-width range. A drive wheel has a diameter but no type (mecanum, omni, traction), and an odometry pod is one of the two pods listed below. Where the simulator needs a stand-in, it says so in its report.
Odometry pods
Select parallelPod or perpendicularPod to see its Odometry pod group:
- Pod model: 4-Bar or Swingarm. Picking one sets both pods.
- Counts up when the robot moves: Forward or Reversed. Flip it if the robot thinks it's moving backward or right.
The parallel pod's distance left of center and the perpendicular pod's distance forward of center are the offsets sent to the Pinpoint.
Check what the robot will use
Select a subsystem's heading to see what the robot works out:
- the drivetrain's track width, wheel base and top speed;
- the odometry's two offsets and pod model.
Anything the design doesn't give (an unplaced wheel, a speed left at Not set) comes from the robot's Constants.java, and the readout says so.
Defaults and On Init
The values the Live Robot tab can change while the robot runs can also be saved on the robot's design. Select a device or a subsystem's heading to see them, in two groups, each with a sentence at the top saying where its values apply:
- Defaults: what a script step uses for a parameter it leaves on Use default, named the way the step names it. The intake's shows targetRpm (IntakeOnCommand): set it to 920 and an IntakeOnCommand step reads Use default (920). A value several commands fall back to names them all. The design keeps it under the robot code's own name for it (the intake's
intakeRpm), and anything else in the code that reads that value, such as a toggle button, uses it too. Hover the field to see that name. - On Init: every other value. The robot sets each one given here as the OpMode is initialised, as if it had been typed on the Live Robot tab. A speed here sets the mechanism running as soon as Start is pressed: the intake's
targetRpmunder On Init starts the intake with the OpMode. Use it for things like a tuned PID gain, or a servo's starting position.
A servo's commandedPosition whose servo has a range is typed in degrees from the centre, its label marked (°), and saved as the position that angle is: 15 on a 180° servo is saved as 0.5833. Degrees past the servo's travel or limits turn red, with the travel as the tooltip, and are not saved until they are fixed. Without a range it is typed as a position.
Which group a value is in comes from the robot code (config.json's DesignDefaults), so a value only scripts use is never mistaken for one set at Init. Which device a value is shown on:
- A value whose name starts with the device's name (
flywheelMotor1.PID.p,frontLeft.power) is that device's. - A value with no device in its name (
shootingRpm,angleDegrees) is the device's when its subsystem has only one motor or servo, as the flywheel and the hood do. - Any other value (the drive's
xController.PID.pandautoTuning, say) is shown on the subsystem's heading instead.
What you type is saved with the design and synced to the robot. Blank keeps the code's own value. The Driver Station's Init telemetry lists what was applied under "Robot design".
Subsystem settings
Some subsystems keep numbers that differ from robot to robot and are measured, not chosen: where a servo sits at each end of its travel, a table of shots. Select that subsystem's heading and a Settings box appears, titled with the file it edits, such as Settings (flowerBar.json).
- It has a field for each setting the robot code lists, and a short note above for anything the boxes can't say (for example, that the subsystem does nothing until both positions are given).
- Every valid edit is written to the active robot's file straight away: there is no Save button. Press Sync to send the file to the Control Hub.
- Blank means not set: the setting is left out of the file and the subsystem uses its own default, shown in the box. Anything you type is kept as you typed it.
- An entry that can't be used (not a number, outside its range) turns red, with the reason as its tooltip, and nothing is saved until it is fixed.
- Use current value appears beside a number that can be measured on the robot. Connect to the robot on the Live Robot tab, move the mechanism to the position (the servo's
commandedPositionthere can be edited by hand), then press it: the connected robot's value goes into the box and is saved. With no robot connected it says so. - A table has Add row and Remove row. A cell in a column that can be measured takes the current value with the Use current value under the table.
- Anything else in the file, such as an
"about"note, is kept when you edit. - A file that isn't a JSON object is never overwritten: the box shows a note and is disabled.
The box checks types and ranges. Whether the file is right is decided by the robot's code when the file reaches it, and it shows a message on the Driver Station if it refuses one.
The drive train


Every robot with a drivetrain has a Drive Train, on the Drive train tab and the Assemblies tab, with nothing to mark in the code: a wheel at each corner -- the drivetrain's motors, each at the corner its name says (frontLeft, rearRight...) -- and the odometry: the parallel and perpendicular pods, each told apart by its name, and the Pinpoint they plug into. The Drive Train page and the simulator read the library's mecanum layout on a Pinpoint; a team can drive with its own drive subsystem if it implements the library's HolonomicDrive. Under the list, a red line says what would keep the robot from driving as designed: a corner without one wheel, a drive motor or pod whose name doesn't say which it is, or a missing pod while the odometry is switched on.
The Drive Train page. Choosing the Drive train tab, or selecting the Drive Train or one of its devices, puts its page in the robot views' place: the drive train seen from above -- its motors, pods and Pinpoint drawn as the Top view draws them, as the things they are while Realistic devices is ticked, with each mecanum wheel and its rollers over them where it touches the field -- over a card for Wheels, Motors and Odometry. Click a card, or a part in the drawing, for its settings; a part clicked is shown in the property editor beside the page too. The drawing is the Top view itself: drag a motor, pod or the Pinpoint to move it, its corners to resize it and its grab point to turn it, nudge it with the arrow keys or type its placement, exactly as in the robot views, which follow the drag as it goes. A wheel still on its default point moves with its motor. Contact points aren't dragged: a drag isn't a measurement, so they are typed on the cards.
What the robot's driving and position tracking depend on most is each wheel's contact point: where it touches the field, in millimetres forward and left of the robot's center (right is negative). The kinematics come from the four drive wheels' points, the pose from the two pods'. A point that isn't measured shows where the device is drawn, slanted, tagged Default — measure: the robot uses that until you measure the real one and type it in, or click Mark measured for a default that is right. A line at the top counts the points still to measure, and the drawing marks each point filled once it is measured, hollow while a default stands in, and red when the robot refuses it (a wheel's point on the other side from its name) or can't read it. Of a pod's point the robot reads one distance -- the parallel pod's left, the perpendicular pod's forward -- and the other is marked "(drawing)". With the odometry switched off no pod needs a point.
- Wheels: each wheel's contact point and which way its rollers run (Rollers: Front-left type or Front-right type), or with Mirrored ticked one point that sets all four, each on the side its name says; and the wheels' diameter.
- Motors: each drive motor's free speed, gear ratio and direction.
Wheels placed by their rollers. Once any drive wheel states its rollers, no wheel is read from its name: the wheels are the drive motors that state their rollers, with any name and anywhere, three or more, each at its own contact point, which must be measured. The Wheels card then lists the drive motors by name: type a name to rename one, or add a drive motor under them (Add Drive Motor), so a robot whose motors are wheelMotor1 to wheelMotor4 drives as its design places them. A drive motor left Not set is then no wheel, but one named for a corner (rearLeft) is refused until it states its rollers; the red line at the top gives the robot's reason for any layout it refuses, and the robot then drives with its code's drivetrain. The drawing puts each wheel at its contact point with its rollers slanting, and its arrow pointing, the way its rollers say. A drive motor whose name gives no corner is listed the same way, to give it its rollers.
- Odometry: each pod's contact point, the pods' model and which way each counts.
Under the cards, what the robot works out from them: track width, wheel base, top speed and the pods' offsets. Every edit is saved to the robot design at once; a contact point can be taken back with Cmd/Ctrl+Z -- all four of a mirrored one together.
Drive settings. At the bottom of the page, a card for each of the other settings that make the robot drive, read-only, with a link to where it is set:
- Drive subsystem: how many of the drive's own settings this robot's file gives, and how many values it sets at Init. The link selects the drive subsystem on the Subsystems tab.
- Pedro Pathing: how many of Pedro's settings this robot's file gives, for paths whose Follower is Pedro. The link opens the drive subsystem's Pedro Pathing group.
- Paths: each path sets its own speed, acceleration and Follower; the card gives the drive's top speed. The link opens the Auton tab's Paths page.
- Feedforward: the drive's kS, kV, kA and strafe efficiency, as the design states them on the drive subsystem. They are typed, or filled from a calibration, on the Tuning tab (below).
- Calibration: what the simulator builds the drive from -- the robot's recordings, once calibrated, else its motors' datasheet. The link opens the Recordings tab.
The Tuning tab. Beside Hardware, the Tuning tab holds the drive's path-following P, I, D and I-zone for x, y and heading, its feedforward and its motion limits, as one form saved with the robot's design. Its five steps turn a recorded test drive into a calibrated feedforward and starting gains, then compare the next run against the plan: see Calibrate the drive from a test drive. Fill from: Robot fills the form with the gains the robot connected on Live Robot is running, for example after tuning them there (Tune a control loop live).