Skip to content

2 – Robot Coding

🎯 Learning Objectives

  • Use movement functions from last lesson to control the rover through a planned path.
  • Sequence instructions so the rover moves, turns and stops in the correct order.
  • Test and adjust pause values to make the rover travel the correct distance.
  • Use selection so the rover can flash its LEDs when it detects a possible sample.

💬 Key Vocabulary

  • Satellite image
  • Route
  • Function
  • Sequence
  • Pause
  • Selection

📝 Starter Activity – Rover Training Check

Before Mission Control allows your rover near the ruins, you need to prove that you remember your training from last lesson.

Answer these questions:

  1. What does a function do?
  2. Why did we create functions such as driveForward, turnLeft, turnRight and Stop?
  3. What does sequence mean?
  4. What does a pause block control?
  5. Why might a rover not move perfectly the first time?

📖 Introduction

Last lesson, your rover completed its first movement test. Now the rover has been cleared for a real Mars mission.

During the night, a Lincolnshire Space Academy satellite picked up a strange signal coming from under the Martian dust. The satellite has sent back two images. They show what looks like an ancient ruined structure buried on Mars.

Some shapes are too straight to look natural.

Some walls look like they were built.

The science team wants to know:

Could these ruins be evidence of ancient life on Mars?

Your rover has been sent to investigate. However, there is one problem…

The rover cannot drive itself yet.

It needs your code.

🥇Level 1

In this lesson, you…

Next lesson, you will…

🏅 Level up

🥇 Level 1

🥈 Level 2

🥉 Level 3