[beagleboard] Re: Magnetometer calibration error

2017-05-10 Thread Michael K Johnson
I should add that the problem persists after cycling power fully, including disconnecting the battery. So it does not look like a transient error. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoar

[beagleboard] Re: Magnetometer calibration error

2017-05-13 Thread Michael K Johnson
Furthermore, when I hack the library to write the calibration file even if the sanity checks fail, just so I can see what it does, I get: # cat /var/lib/roboticscape/mag.cal 216.160797 10.290765 38.221786 2.125283 nan 1.748049 That "nan" looks suspicious! Is this defective hardware? -- For m

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-13 Thread William Hermans
nan == "not a number". So something you've "hacked" is most likely causing that output. On Sat, May 13, 2017 at 11:36 AM, Michael K Johnson wrote: > Furthermore, when I hack the library to write the calibration file even if > the sanity checks fail, just so I can see what it does, I get: > > #

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-13 Thread William Hermans
On Sat, May 13, 2017 at 11:46 AM, William Hermans wrote: > nan == "not a number". So something you've "hacked" is most likely > causing that output. > Quite possibly related to sending output from an unsigned char, or character type without first converting( casting ) to a number type. In your

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-13 Thread William Hermans
On Sat, May 13, 2017 at 11:48 AM, William Hermans wrote: > > > On Sat, May 13, 2017 at 11:46 AM, William Hermans > wrote: > >> nan == "not a number". So something you've "hacked" is most likely >> causing that output. >> > > Quite possibly related to sending output from an unsigned char, or > c

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-13 Thread Michael K Johnson
Yeah, I know NaN. I've done plenty of work with floating point. By "hack" I meant *only* disabling the sanity check that prints "ERROR: center of fitted ellipsoid out of bounds" to see what would happen without the sanity check. I was curious what would be written to the magnetometer calibratio

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-13 Thread Michael K Johnson
I solved the problem. The BeagleBone Blue was in too close proximity to the DC motors that it drives. I removed the BBBL from the chassis and kept only the battery connected, and now I can calibrate the magnetometer successfully. I will have to reconsider the layout and move the BBBL further a

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-14 Thread Clark Sann
How far did you have to move the BB from the motors? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to b

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-14 Thread Michael K Johnson
I completely removed it from the chassis so far. I haven't yet experimented to see how close it could be; I'm more likely to place it as far at as I can to make it most accurate. On May 14, 2017 10:32 AM, "Clark Sann" wrote: How far did you have to move the BB from the motors? -- For more opti

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-14 Thread Michael K Johnson
The implied other half of the question is I suppose how close was too close. About 4-5cm away. On May 14, 2017 13:22, "Michael K Johnson" wrote: > I completely removed it from the chassis so far. I haven't yet > experimented to see how close it could be; I'm more likely to place it as > far at a

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-14 Thread Clark Sann
Thanks for that. I'm hoping I don't have any ill effects if I locate a BB Blue 6" or so away from motors. This is on a 48" radio controlled boat so I can probably put it further away if I need to. > On May 14, 2017, at 3:07 PM, Michael K Johnson wrote: > > The implied other half of the questio

Re: [beagleboard] Re: Magnetometer calibration error

2017-05-14 Thread Michael K Johnson
I've been playing more. I don't notice an effect on the compass (rc_test_dmp -m -c) until the IMU is within about 2cm of one of the motors (not running). I'm sure that different motors have different magnetic fields. I haven't even begun to explore with the motors running. I don't know all the