Writing robot code before verifying hardware can mask physical and electrical faults. If a motor controller is inverted or an absolute encoder lacks a calibrated zero offset, high-level software cannot function reliably.
Stage 1 validates and tunes physical mechanisms on a bench test-stand using Phoenix Tuner X before writing roboRIO code.
Hardware Validation Checkpoint
Section titled “Hardware Validation Checkpoint”Before closed-loop tuning, create a known-good baseline that another teammate can reproduce:
- Record each device name, bus, CAN ID, firmware version, and physical location.
- Confirm that the bus is correctly terminated and that Tuner X discovers every expected device without duplicates.
- Command only low output and verify that positive software motion matches the mechanism’s positive direction.
- Move sensors by hand with output disabled and confirm that the reported sign matches the configured coordinate convention.
- Write down current limits, soft limits, zero offsets, and the first tuning observations before transferring values into Java.
This separation keeps wiring, configuration, mechanism safety, and control tuning diagnosable instead of allowing software changes to hide a bench fault.
The “Bench to Autonomous” Progression
Section titled “The “Bench to Autonomous” Progression”By tuning motors and verifying sensors on the bench first:
- Isolated Variables: When an arm behaves unexpectedly in autonomous, you already know the physical gains () are stable because you tested them directly.
- Prevented Mechanical Damage: Stator current limits and soft limits are validated before autonomous code can drive a carriage past physical travel bounds.
Verified Sources & Standards
- CTRE Phoenix Tuner X Hardware Discovery & Commissioning Guidev6.docs.ctr-electronics.comHardware Vendor
Lessons
CAN Bus & Device Configuration
Wiring topologies, CAN 2.0 vs CAN FD, 120-ohm termination, device discovery, unique IDs, motor inversions, and sensor phasing.
Bench Diagnostics & Signal Plotting
Real-time signal plotting in Tuner X, identifying electrical and mechanical failure shapes, checking current draw, and bench sign-off criteria.
Velocity Closed-Loop Tuning
Measuring static friction kS, calculating velocity feedforward kV, setting proportional gain kP, and testing flywheel recovery in Tuner X.
Position Closed-Loop & Motion Magic
Gravity compensation (kG) for arms and elevators, cruise velocities, accelerations, jerk-limited S-curves, and position hold in Tuner X.