embeddedgyro / shakey-table

Repo for team 2 of the Real Time Embedded Programming 5 course at the University of Glasgow, creating an anti-quake cup holder.
GNU General Public License v3.0
0 stars 2 forks source link

First number calculated for the angular position is `nan`, causing a duty cycle out-of-bounds exception in the motor driver code #53

Closed Adam-Englebright closed 6 months ago

Adam-Englebright commented 6 months ago

As in the title. The first time running any program that reads from the MPU6050 and calculates the angular position will fail with an exception from the motor driver control code (desired duty cycle out-of-bounds). All subsequent program runs work fine, with no exception thrown.