Hi J,
Do you mean:
My use of underscores X_C instead of XC?
My use of brackets? (I tried without first then with)
In your message #99 you used X0, (number) and yo (letter) I chose number although I tried letter first.
Then you have not given any values for m11- m33 and bias values Bx By Bz
Try first to send the calibrated values to terminal and look if they are reasonable.
Then you have not given any values for m11- m33 and bias values Bx By Bz
Try first to send the calibrated values to terminal and look if they are reasonable.
Fine!
Could you test it now:
Start with y pointing to north and rotate 360 degrees clockwise, for example in 45 degrees steps.
Display x, y for each step.
Fine!
Could you test it now:
Start with y pointing to north and rotate 360 degrees clockwise, for example in 45 degrees steps.
Display x, y for each step.
Hi S,
I switched x_c and y_c, now at 0Deg 11 shows, 22.5Deg shows 31 and 35DEg shows 40. 35-45 shows 41DEG.
NOTE: When I was 7, I was kept in after school, because I couldn't see the 'carry' when adding tens and units. 38+38 = 66. Even though I've since passed 'O' level maths and physics, it never went way
Can't help much more than looking at the basic math. Also, if Y happens to be exactly zero (0), your logic/formula will fail. One has to test for zero divisor first, before any other math where one divides by a variable.
Of course if Y=0, then your answer will be more limited as to solutions.
If you want to have the angle clockwise from north, the x values should be negated.
Then with the values from msg #108, 0 is about - 9 or 351 degrees.
45 ~ 35 degrees and 90 ~ 86 degrees.
There is quite a lot deviation between values with the same angle of the sensor.
Does any of this take into account magnetic north vs geographic north? That is, if pointing to geographic north, -9Deg (351 Deg) may make sense if that points to the magnetic pole. These external devices can only sense magnetic north.
Does any of this take into account magnetic north vs geographic north? That is, if pointing to geographic north, -9Deg (351 Deg) may make sense if that points to the magnetic pole. These external devices can only sense magnetic north.
Hi S,
Regarding Y=0: So far I'm looking at the first OCTANT of the circle, so it's possible that in other OCTANTS there may be 'If y = 0 then'
I'm using Oshonsoft BASIC, and there is a SYNTAX '>=' What I'm following here, I think is written in C+?, and I'm not sure if '> 0' may also mean '>='. Perhaps you know?
At the moment, I'm not concerned with magnetic/true, I'll look farther into this later. I think the deviation here is <1 Deg.
C.
If you want to have the angle clockwise from north, the x values should be negated.
Then with the values from msg #108, 0 is about - 9 or 351 degrees.
45 ~ 35 degrees and 90 ~ 86 degrees.
There is quite a lot deviation between values with the same angle of the sensor.
Hi J,
How do I negate X values? Can this be done at the two's compliment stage?
I noticed the deviation in values, also when using MAGMASTER. I can perhaps average them out in some way.
I slowed down the number of READings/sec, also lowered the sensitivity from 16BIT to 14BIT, has this helped?
C.
Hi J,
How do I negate X values? Can this be done at the two's compliment stage?
I noticed the deviation in values, also when using MAGMASTER. I can perhaps average them out in some way.
I slowed down the number of READings/sec, also lowered the sensitivity from 16BIT to 14BIT, has this helped?
C.