Skip to content

Gyro sampling rate #6

@applovinravi

Description

@applovinravi

I am not sure whether this is a bug and if it is benign or if it is just a commenting error.

It seems for 100 Hz, the register setting should
be 0x67 and not 0x57.

I came across this while trying to port the Bias estimate and the madgwick filter to a Adafruit Flora, to get more stable reading.

// From the manual
//0 1 0 1 50 Hz 0 1 1 0 100 Hz

From Adafruit code:
write8(XMTYPE, LSM9DS0_REGISTER_CTRL_REG1_XM, 0x67);

From this code:
xmWriteByte(CTRL_REG1_XM, 0x57); // 100Hz data rate, x/y/z all enabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions