Skip to content

Commit

Permalink
Merge pull request #31 from lf-lang/yaw
Browse files Browse the repository at this point in the history
Note with explanation on why yaw cannot be measured using an accelerometer
  • Loading branch information
hokeun authored Sep 25, 2024
2 parents 513c24e + 1fef0a2 commit 5bcb5f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Sensors.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Our goal will to just measure pitch and roll because we will assume that the rob

**Pitch** is the angle deviation from horizontal of a straight line coming out of the front of the robot. **Roll** is the angle deviation from horizontal of a straight line going directly through the wheels. These are illustrated in the following figures:

**Note:** An accelerometer cannot measure **yaw** because Earth's gravity acts in the same direction as the Z-axis, which prevents the accelerometer from measuring rotation on the Z-axis. Instead, a different sensor called a **magnetometer** (i.e., digital compass) could be used to measure yaw by measuring an object's orientation relative to Earth's magnetic north pole. (Reference: [IoT Code Guidebook - Accelerometer](https://docs.idew.org/code-internet-of-things/references/physical-inputs/accelerometer))

<img alt="Pitch" src="img/3pi-2040-pitch.png" width=48%/>
<img alt="Roll" src="img/3pi-2040-roll.png" width=48%/>

Expand Down

0 comments on commit 5bcb5f0

Please sign in to comment.