Skip to content

Commit

Permalink
Fix ConfigurePolledBno055 operation mode
Browse files Browse the repository at this point in the history
- It was incorrectly configured in IMU mode (which only uses gyroscope and
  accelerometer). Now its correctly configured to use magnetometer in
  NDOF mode, which should reduce drift.
  • Loading branch information
jonnew committed Dec 18, 2024
1 parent 74f6f22 commit 3e6b9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEphys.Onix1/ConfigurePolledBno055.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void ConfigureBno055(DeviceContext device)
i2c.WriteByte(0x3F, 0x00); // Internal oscillator
i2c.WriteByte(0x41, (uint)AxisMap); // Axis map config
i2c.WriteByte(0x42, (uint)AxisSign); // Axis sign
i2c.WriteByte(0x3D, 8); // Operation mode is NOF
i2c.WriteByte(0x3D, 0x0C); // Operation mode is NOF
}
}

Expand Down

0 comments on commit 3e6b9b4

Please sign in to comment.