⬛️ Mission 1: Making a Square! | myBetabox

⬛️ Mission 1: Making a Square!

Starting Mission 1!

When you're ready to start a mission, it's always a good idea to clear your workspace of anything that could get in the way. If you leave any blocks in your workspace, your mission might act in a way you didn't expect.

Think about what a square looks like before you start coding. You probably learned in geometry that a square has four sides that are all the same length and that each corner is a right angle.

Imagine you couldn't pick up your pencil from the paper while drawing. How would you draw a square? This is how your drone will move through the air. Let's write out these steps together below:

  1. Takeoff
  2. Move forward
  3. Move right
  4. Move backward
  5. Move left
  6. Land

What we have just done is create something called pseudocode. This is an easy to understand way to plan out your code before having to actually write the code!

Some of you may notice that this is only one solution to our mission and there are others that may involve different actions or even less code! See if you can find any other solutions!

Once you have a plan, you can make your code in DroneBlocks by dragging the blocks you need into the correct order. Remember, there is more than one right way to finish this mission, so see if you can find the one that uses the fewest blocks.

When you are ready to test your mission and have gone over all the safety measures, you can launch your drone.


Having Trouble? Look Below!