diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -61,8 +61,7 @@ class PID { } }; -I2C i2c; -AHRS ahrs(i2c); +AHRS ahrs(I2C1); volatile uint16_t motors[4]; @@ -112,7 +111,7 @@ int main() { // Give all hardware enough time to initialize. Time::sleep(200); - i2c.enable(); + I2C1.enable(PB8, PB9); ahrs.init(); PPMSum ppmsum; |