Skip to content

calibrate call offsets internal integration #56

Closed
@mycosd

Description

@mycosd

Hi,

I've tested the GY521_pitch_roll_yaw example and noticed a 30° offset on the roll axis right from the start. Playing around I also noticed that increasing the calibrate times argument, just makes it worse.

There is an integration with class member variables going on in read, and since calibrate calls it, this integration is offset by a constant factor of times.

I think at the end of calibrate the variables _gax, _gay and _gaz should be reset to zero. And also they should be set to zero in the constructor to begin with. I only skimmed through the code, so there is a good chance that this suggestion could be wrong.

Maik

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions