Slide 1 of 7 · Settling starter · Computing · Year 3
5 minutesProgramming a Mars Rover to Collect Rock Samples
Year 3 at Ysgol Glan Ffrwd have a toy rover and a floor map of a crater on Mars. The rover must drive from its base to collect rocks for scientists. It only does what the cards tell it.
While the register is called: write your name, class and date on your worksheet. Find the base, the crater and the soft sand on the map.
Starter question: Why can’t drivers on Earth steer a Mars rover like a remote-control car? The answer is in section 3 of the stimulus sheet.
Slide 2 of 7 · Today’s brief and key words · Computing · Year 3
3 minutesYour job: follow, fix and write rover programs
You will follow programs, fix programs that go wrong and write your own. The rover must not drive into the crater or the soft sand, and it cannot drive over the cliffs.
F (Forward)
Move 1 square the way the rover is facing.
R (Turn right)
A quarter turn clockwise. The rover stays on the same square.
L (Turn left)
A quarter turn anticlockwise. The rover stays on the same square.
Slide 3 of 7 · Steps 1 and 2: follow Programs A and B · Computing · Year 3
10 minutesStep 1 & Step 2: follow the cards one at a time
Step 1, Program A: the rover starts at the base, facing up. Put your finger on the base. Follow F F F. Which rock does it reach?
Program A: F F F moves the rover up 3 squares. It reaches the layered rock.
Step 2, Program B: start on the layered rock, facing up. Follow R F F F. Which way does it face after card 1? Which rock does it reach?
Slide 4 of 7 · Steps 3 and 4: find the bugs, write your own · Computing · Year 3
17 minutesStep 3 & Step 4: fix the bugs, then write your own program
Step 3: Cai and Megan both tried to send the rover from the base (facing up) to the red rock. Both programs have a bug. Follow each one until it goes wrong.
Cai: R F F F F F R F. His rover reaches the bottom right corner, then card 7 (R) turns it to face down and card 8 drives over the cliff.
Step 4: the rover is on the red rock, facing up. Write a program to reach the speckled rock. Keep away from the soft sand! Fill in the turn column for each turn card, then test it with your finger.
Slide 5 of 7 · Steps 5 and 6: name the turns, use a repeat · Computing · Year 3
15 minutesStep 5 & Step 6: name every turn, then make it shorter
Step 5: the rover turns on the spot. Two quarter turns the same way make a half turn. Draw the arrow and name each turn.
| Starts facing | Cards | Ends facing | Name the turn |
|---|---|---|---|
| up | R | right | quarter turn clockwise |
Step 6: your fixed program has F 5 times in a row. Write it again using Repeat 5 times: F. How many instructions did you save?
Slide 6 of 7 · Partner test and self check · Computing · Year 3
5 minutesSwap with a partner: test their Step 4 program
Swap worksheets. Put your finger on the red rock, facing up, and follow your partner’s program. Does it reach the speckled rock without touching the soft sand?
- I can follow a program one card at a time.
- I can find a bug and fix it.
- I can write a program and test it.
- I can name a quarter turn and a half turn, clockwise and anticlockwise.
Slide 7 of 7 · Plenary review · Computing · Year 3
5 minutesLet’s check our answers together
Answer together as a class, then check your sheet.
| Question | Correct answer |
|---|---|
| Which card was Cai’s bug, and what should it be? | Card 7. R should be L. |
| The rover faces up and does R R. Which way does it face? What is the turn called? | Down. A half turn clockwise. |
| Why must the rover keep away from soft sand? | In 2009 the rover Spirit got stuck in soft ground on Mars and never drove again. |