Week 1
Teach a computer five facts about a robot, then stop it setting a motor on fire.
By the end of it: clamp logic with if/else, tested with 2.0, -3.5 and 0.5
- Run a Java program and read what it printed.
- Declare and use variables of different types.
- Use math operators, and spot integer division before it costs you.
- Use if and else if to keep a value inside a legal range.
- What you are about to buildEight weeks, from nothing to code on a real robot.Read5 min12 XP
- Homework: start the big download nowTwo jobs, done once, that make weeks 3 to 8 possible.Do it for real25 min15 XPHomework
- Boxes with names on themStore a number once, use it everywhere.Read6 min13 XP
- The robot spec sheetFive facts about a robot, printed by your own program.Write code8 min40 XP
- The division that lies to youSix questions about the maths Java does behind your back.Quiz5 min18 XP
- Asking the robot a questionif, else, and why 1.4 is not a motor speed.Read5 min12 XP
- Boss: keep every motor legalThe week's deliverable - if/else that no mechanism can escape.Write code10 min86 XP
- Homework: how far did it actually go?Turn encoder ticks into inches, the way every auto routine does.Write code8 min42 XPHomework
- Stretch: decimals are liarsWhy 0.1 + 0.2 is not 0.3, and what to do about it.Quiz5 min18 XPStretch