Calibration of HMC5883L

Hello all,
I want to use the HMC5883L, which is a 3 axis compass. For my project, i want to be able to calibrate it on the north geographic with marks on the floor and a color detector.
I searched a lot but i only found how to calibrate it with algorithms.
So my question is : is it possible to assign a new value of the north multiple times by my own program ?
Thank you by advance for your help.

with marks on the floor and a color detector.

What does this mean?

This is the best tutorial for calibrating a magnetometer: Tutorial: How to calibrate a compass (and accelerometer) with Arduino | Underwater Arduino Data Loggers

Charles__:
Hello all,
I want to use the HMC5883L, which is a 3 axis compass. For my project, i want to be able to calibrate it on the north geographic with marks on the floor and a color detector.
I searched a lot but i only found how to calibrate it with algorithms.
So my question is : is it possible to assign a new value of the north multiple times by my own program ?
Thank you by advance for your help.

Let me see if I got this correct:

You want to draw true N-S lines on the floor, you are going to use a color detector, to find those lines, and re orientate, either physically or programatically, the devices readings based upon those drawn lines, right?

And you want to know if you can update a variable with that new value multiple times by your own program? Yes.

Idahowalker:
Let me see if I got this correct:

You want to draw true N-S lines on the floor, you are going to use a color detector, to find those lines, and re orientate, either physically or programatically, the devices readings based upon those drawn lines, right?

And you want to know if you can update a variable with that new value multiple times by your own program? Yes.

Waouh, did you read my mind or...?
So yes, it's exactly what i want. Do you have the answer ?

Charles__:
So my question is : is it possible to assign a new value of the north multiple times by my own program ?

Yes.

Ok, thank you very much !
So could you tell me how ?

Here is a link that should help C++ Variables

Idahowalker:
Here is a link that should help C++ Variables

Nice joke, I appreciate

jremington:
What does this mean?

This is the best tutorial for calibrating a magnetometer: Tutorial: How to calibrate a compass (and accelerometer) with Arduino | Underwater Arduino Data Loggers

As i said, i'm not asking for a "simple" calibration with the magnetic north.

The magnetometer is useless for just about any purpose if it is not calibrated.

Calibration is about removing offsets and correcting scale factors, and has nothing at all to do with magnetic North.