diff --git a/EENX15_LQR/EENX15_LQR.ino b/EENX15_LQR/EENX15_LQR.ino index 5a89a51..103efc1 100644 --- a/EENX15_LQR/EENX15_LQR.ino +++ b/EENX15_LQR/EENX15_LQR.ino @@ -1,3 +1,5 @@ +#include + //temporary variable to measure main loops int temp_loops; @@ -60,6 +62,7 @@ unsigned long timeoldA; unsigned long timeoldB; void setup() { + Wire.begin(); Serial.begin(115200); while (!Serial) delay(10); // will pause Zero, Leonardo, etc until serial console opens diff --git a/EENX15_LQR/gyro.ino b/EENX15_LQR/gyro.ino index 380c62a..284e8c5 100644 --- a/EENX15_LQR/gyro.ino +++ b/EENX15_LQR/gyro.ino @@ -1,7 +1,6 @@ //gyroscope stuff #include #include -#include Adafruit_MPU6050 mpu;