Yaw not being recognized

When programming BB8 with SpheroEDU on JavaScript, the yaw sensor isn’t working. We’ve set the code so that when the Yaw is greater than 20, the command is to “speak.” However, when we turn the BB8 and the Yaw is greater than 20, the command is not executing.

There are no errors coming up.

Any advice on what we might be doing wrong? Code is posted below

1 Like