> ## Documentation Index
> Fetch the complete documentation index at: https://stem-docs.intellectualpoint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding the controls

> Connect the joysticks to real drone movement - throttle, yaw, pitch, and roll - the four inputs behind every flight.

## From sticks to movement

Yesterday you learned that every drone movement is **throttle, yaw, pitch, and roll**. Today you'll map those directly onto the two joysticks so flying becomes second nature - and so the code you write on Day 3 clicks instantly.

<Frame caption="What each joystick direction does">
  <img src="https://mintcdn.com/intellectualpoint/0OezIcfdUd2uC_Gv/images/drones/joystick-controls.png?fit=max&auto=format&n=0OezIcfdUd2uC_Gv&q=85&s=d31bb62f9358d8cecb288c0434814e3b" alt="Diagram of left and right joystick directions mapped to drone movements" width="1536" height="1024" data-path="images/drones/joystick-controls.png" />
</Frame>

<Frame caption="Every stick direction, and the exact movement it creates">
  <img src="https://mintcdn.com/intellectualpoint/eW7U9shBQKKM3XX9/images/drones/four-inputs-quadrant.png?fit=max&auto=format&n=eW7U9shBQKKM3XX9&q=85&s=cd4effb8a017121b09cb626ba43e741a" alt="Two joysticks with all four directions labeled throttle, yaw, pitch, and roll, each showing the drone's motion" width="1536" height="1024" data-path="images/drones/four-inputs-quadrant.png" />
</Frame>

## The left joystick: altitude and yaw

<CardGroup cols={2}>
  <Card title="Push up / down" icon="move-vertical">
    **Altitude (throttle).** Up makes the drone rise, down makes it descend. Center holds its height.
  </Card>

  <Card title="Push left / right" icon="rotate-3d">
    **Yaw.** Spins the drone in place to face left or right, without moving it sideways.
  </Card>
</CardGroup>

## The right joystick: forward, back, and sideways

<CardGroup cols={2}>
  <Card title="Push up / down" icon="move-vertical">
    **Pitch.** Flies the drone forward or backward.
  </Card>

  <Card title="Push left / right" icon="move-horizontal">
    **Roll.** Slides the drone to the left or right without turning it.
  </Card>
</CardGroup>

## The four inputs, side by side

| Input        | Joystick          | Motion                       |
| ------------ | ----------------- | ---------------------------- |
| **Throttle** | Left, up/down     | Rise / descend               |
| **Yaw**      | Left, left/right  | Turn to face a new direction |
| **Pitch**    | Right, up/down    | Fly forward / backward       |
| **Roll**     | Right, left/right | Slide left / right           |

<Info>
  These four values are **exactly** what your code will control starting on Day 3. Whether it comes from a joystick or a block of code, the drone only ever understands throttle, yaw, pitch, and roll.
</Info>

## Yaw vs roll - the classic mix-up

New pilots often confuse turning (yaw) with sliding (roll):

* **Yaw** (left stick): the drone *rotates* to point a new way, like turning your head.
* **Roll** (right stick): the drone *slides* sideways while still facing the same way, like stepping to the side.

<Frame caption="Yaw rotates the drone in place; roll slides it sideways without turning">
  <img src="https://mintcdn.com/intellectualpoint/PocgpVBYuYokR5M6/images/drones/yaw-vs-roll.png?fit=max&auto=format&n=PocgpVBYuYokR5M6&q=85&s=fc13282ff366d82299047c986c37c950" alt="Top-down comparison of yaw rotating the drone versus roll sliding it sideways" width="1536" height="1024" data-path="images/drones/yaw-vs-roll.png" />
</Frame>

<Tip>
  Practice the motions with the drone powered off first. Say each one out loud - "throttle up, yaw left, pitch forward, roll right" - while moving the sticks. Muscle memory built now pays off in every flight and every program this week.
</Tip>

<Check>
  You can explain which stick controls throttle, yaw, pitch, and roll, and describe the difference between yaw and roll.
</Check>
