Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pbio/imu: Add user adjustable gyro correction. #252

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

laurensvalk
Copy link
Member

For rationale and usage, see pybricks/support#1678

Update the pattern to match other new code while we are working on this code anyway.
If the user sets only one value, the other value was first obtained with a getter and then set again. Since both operations could introduce rounding errors, this may not be a stable operation over time.

Instead, only set a new value if it is given.
@coveralls
Copy link

Coverage Status

coverage: 56.592%. remained the same
when pulling 5a24099 on gyro
into d16a98f on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants