LESSON 03 / 06
Hardware mapping and telemetry
Connect configured devices to code and make robot state visible while testing.
Learning Objectives
- Map motors and servos by configuration name
- Explain the difference between power and position
- Use telemetry to inspect assumptions
Explanation
Hardware mapping is the bridge between the robot configuration and Java objects. Names must match the configuration exactly. Begin testing with low-risk commands, verify direction and limits, and use telemetry to report the values that explain what the robot thinks is happening.
Example
DcMotor drive = hardwareMap.get(DcMotor.class, "drive");
telemetry.addData("drive power", drive.getPower());
telemetry.update();Try It
Create a checklist for testing one motor and one servo without relying on visual guesses alone.
