-
-
Notifications
You must be signed in to change notification settings - Fork 7
[Question] How do I calibrate the NXT Compass Sensor? #159
Copy link
Copy link
Closed
Labels
close-meIf there is no new activity on the issue, it will be closed after a few months.If there is no new activity on the issue, it will be closed after a few months.platform: EV3Issues related to LEGO MINDSTORMS EV3Issues related to LEGO MINDSTORMS EV3software: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)Issues with Pybricks MicroPython firmware (or EV3 runtime)supportRequest for technical support for a problem that is not a bug or feature requestRequest for technical support for a problem that is not a bug or feature request
Metadata
Metadata
Assignees
Labels
close-meIf there is no new activity on the issue, it will be closed after a few months.If there is no new activity on the issue, it will be closed after a few months.platform: EV3Issues related to LEGO MINDSTORMS EV3Issues related to LEGO MINDSTORMS EV3software: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)Issues with Pybricks MicroPython firmware (or EV3 runtime)supportRequest for technical support for a problem that is not a bug or feature requestRequest for technical support for a problem that is not a bug or feature request
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:

Below is the code I have tried...