Skip to content

Commit 5bcb5f0

Browse files
authored
Merge pull request #31 from lf-lang/yaw
Note with explanation on why yaw cannot be measured using an accelerometer
2 parents 513c24e + 1fef0a2 commit 5bcb5f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Sensors.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Our goal will to just measure pitch and roll because we will assume that the rob
5151

5252
**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:
5353

54+
**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))
55+
5456
<img alt="Pitch" src="img/3pi-2040-pitch.png" width=48%/>
5557
<img alt="Roll" src="img/3pi-2040-roll.png" width=48%/>
5658

0 commit comments

Comments
 (0)