Fixed IMU address

This commit is contained in:
Zakary Timson 2024-10-30 11:29:35 -04:00
parent 2e580b44d2
commit 16ea6dafe3

View File

@ -1,6 +1,6 @@
import i2c from 'i2c-bus';
export async function imu(address = 0x4A) { // BNO080 default I2C address
export async function imu(address = 0x4B) { // BNO080 default I2C address
const i2cBus = await i2c.openPromisified(1);
// Register addresses for accelerometer, gyroscope, and magnetometer data (assumes configuration is done)