Unit 3: Java Variables
Use the Java data types that appear throughout FTC code, including hardware names, sensor readings, control values, and counters.
6Lessons
0Completed
Not StartedCurrent Status
Lesson Roadmap
3.1 · String LiteralsLesson 3.1: Using Strings to Match Hardware Names ExactlyOpen3.2 · double PrecisionLesson 3.2: Using double for Motor Power and Precise MathOpen3.3 · boolean FlagsLesson 3.3: Using boolean Values for On-or-Off Robot StateOpen3.4 · int DatatypesLesson 3.4: Using int Values to Count Cycles and RepetitionsOpen3.5 · Dynamic PowerLesson 3.5: Build Dynamic Power Logic with Multiple VariablesOpenUnit 3 · Coding ChallengeUnit 3 Comprehensive Coding Challenge: Robot State VariablesOpen
What This Unit Covers
Choose the correct datatype for names, numeric precision, binary state, and whole-number counts.
Avoid common FTC bugs caused by integer truncation or mismatched hardware identifiers.
Use variables as a single source of truth instead of scattering magic values through code.
Review the sequence and goals here, then resume at your first incomplete lesson.
Already know this unit?
Complete the comprehensive coding challenge to prove every unit objective and jump directly to Unit 4: Gamepad Input.
Stuck on this lesson?
Ask about anything on this page. It can see which lesson you have open and which part you are reading.