f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revo AuxMag
« Reply #180 on: May 04, 2016, 04:03:50 pm »
Quote
When calibration succeeded, AuxMagSettings/mag_bias was very high ~10000 and mag_transform values were very low ~0.05

Check the environment, this is the symptom of a magnetic field / magnetic material around the sensors.

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #181 on: May 04, 2016, 05:36:37 pm »
Will do. Thks.

Jhinta

  • ***
  • 198
Re: Revo AuxMag
« Reply #182 on: May 04, 2016, 05:59:24 pm »
so got my self a ext-mac , every thing is oke, but when usb is not connected its nearly inpossible to get my esc armed. ::)
any id's?
on mainbuild firmware.

ahhh  :P fast multi fast-reinsert makes it start.
« Last Edit: May 04, 2016, 06:06:56 pm by Jhinta »

kennyevo

  • ***
  • 102
Re: Revo AuxMag
« Reply #183 on: May 04, 2016, 08:09:30 pm »
Hi!

My new m8n gps arrived with a mag in it, tried to calibrate as seen in the video (but the whole thing is assembled), the onboard mag works with a 5% error, the aux works with 15%.
Is the "go to last step and rotate your fc in every direction" a good option, or should I recalibrate everything with the instructions on the calibration screen?

Thanks!

Mateusz

  • *
  • 808
Re: Revo AuxMag
« Reply #184 on: May 04, 2016, 08:30:03 pm »
Is the "go to last step and rotate your fc in every direction" a good option, or should I recalibrate everything with the instructions on the calibration screen?

Mag takes samples from the first step, so if you do something wrong on the way it will affect your calibration. Going to last step and rotating in all possible directions to cover whole sphere around is best I think. Also flight controller has internal mag and by default GCS assume the auxmag is in the same orientation. OP GPS has it in the same orientation, but many M8N units form ebay have mag chip in all different directions depending on model. You need to rotate Mag in GCS settings accordingly such that it matches with internal Mag.


kennyevo

  • ***
  • 102
Re: Revo AuxMag
« Reply #185 on: May 05, 2016, 10:04:40 am »
Yep I think it's upside down, I'll try to recalibrate the mags on a field, hopefully it will be good :D

Re: Revo AuxMag
« Reply #186 on: May 05, 2016, 12:34:37 pm »
so got my self a ext-mac , every thing is oke, but when usb is not connected its nearly inpossible to get my esc armed. ::)
any id's?
on mainbuild firmware.

ahhh  :P fast multi fast-reinsert makes it start.


Try to set a motor tab correct hz of you esc rspid esc is 400hz.

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #187 on: May 05, 2016, 02:08:35 pm »
I checked my setup and this is what I got:

I manually reset mag_bias to all zeroes and mag_transform to ones
I displayed the raw magnetometer data on one of the GCS scopes and found the following:
- data on corresponding axis of on_board and aux mags are perfectly correlated (range -200 to +500)
- except that at a certain point there is a huge spike (+10000 to +20000) on all axis of the aux mag
- and afterwards the data from the aux mag flatlines and GCS stops updating the corresponding data objects
- sporadically (no fixed period) additional spikes can be observed
- only way to reset the aux mag to working condition is by powering off the whole jig.

Is there a way to determine if this is a problem with the I2C interface/driver on the Nano or a faulty RCTimer GPS+mag implementation?
 
Thanks for your help.

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #188 on: May 05, 2016, 02:11:57 pm »
I forgot to mention that I also noticed that the refresh interval on the GCS metadata for the auxmagsensor went from the 1000 I manually set to 300 ms by no action of mine. :-[

Mateusz

  • *
  • 808
Re: Revo AuxMag
« Reply #189 on: May 05, 2016, 02:24:04 pm »
You could try adding pull up resistor between SDL and vcc and scl/vcc not sure value one should check i2c specs. Maybe 10k? Or shorten your wires and keep SDL away from SCL.

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #190 on: May 05, 2016, 03:33:52 pm »
Assuming standard mode I2C and a Cb of 400pF, Vcc of 3.3V then Rmin=1kohm and Rmax=3kohm. (attached paper detailing formulas)

I already have the shortest possible SCL and SDA wires. Separating them would be tough though :-\.

I am going to look at SCL and SDA with a logic analyzer and see what I find. Will report back.

Thanks


f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revo AuxMag
« Reply #191 on: May 05, 2016, 03:50:32 pm »
Revo have already pullup resistors.



rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #192 on: May 05, 2016, 04:01:59 pm »
Does the Nano also have the pull-ups?

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revo AuxMag
« Reply #193 on: May 05, 2016, 04:03:52 pm »
Revo Nano has also pullup resistors like Revo but without ESD protection.

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #194 on: May 05, 2016, 04:19:04 pm »
What do you think then is happening with my setup?