Skip to content

Bad Magnometer data #3

@tartaresauceee

Description

@tartaresauceee

Describe the bug

getSensorData.ino
First, on line 79, 81 and 83, (x,y,z) should be replaced by (mx,my,mz)

Then the code is simply not working for the magnetometer. Values are absurd and Y-axis is stuck at -32768. I tried to debud the code. Y-axis -32768 values appears in src/utilities/BMM150-Sensor-API/bmm150.c line 971. Maybe something going wrong in the I2C aux config.

PS: using a M5Core2

To reproduce

M5core2 + GNSS module
Run getSensorData.ino
Observe magnetic field data

Expected behavior

Expect reasonable mag values around 50µT

Screenshots

Image

Environment

  • OS: Windows 11
  • IDE &IDE Version: 2.3.4
  • Repository Version: 1.0.1

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions