Skip to content

[Question] How do I calibrate the NXT Compass Sensor? #159

@althonich

Description

@althonich

Question:
How do I calibrate the NXT Compass Sensor?

Context:
I was (and still am) trying to make a program that allows my robot to go in a straight line with the help of a PID. I noticed that my compass readings are inaccurate and attempted to recalibrate it to get better readings, but I don't know how to do so!

Any help will be greatly appreciated!

Screenshots:
Screenshot 2

Below is the code I have tried...

Screenshot 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    close-meIf there is no new activity on the issue, it will be closed after a few months.platform: EV3Issues related to LEGO MINDSTORMS EV3software: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)supportRequest for technical support for a problem that is not a bug or feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions