ogre55

  • *
  • 10
Revolution Flight Controller GPS Issues
« on: February 08, 2016, 11:30:56 pm »
I just built a 525 quad and am using a revo with GPS that was purchased here.

http://smile.amazon.com/gp/product/B01732VRPE

whenever the gps is turned on in the attitude settings the accel meter and mag meters go crazy.  I have calibrated it in multiple locations and tried with multiple settings in the system tab. I cannot get the quad to arm with the gps enabled.

here is a video of my problem.

hwh

  • *
  • 1018
Re: Revolution Flight Controller GPS Issues
« Reply #1 on: February 08, 2016, 11:57:25 pm »
Your mag sensor is red, you can't use gps modes without a good mag sensor.  It sounds strange but gps mode stability is more sensitive to the mag sensor than the gps quality.

edit:  it looks like f5soh answered in more detail in thread https://forum.librepilot.org/index.php?topic=813.0

ogre55

  • *
  • 10
Re: Revolution Flight Controller GPS Issues
« Reply #2 on: February 09, 2016, 09:35:32 pm »
I understand the mag alarm. I guess what I am asking is if there is possibly something wrong with my set up?
if the GPS unit that I am using is supported?
if there is something possibly wrong with my board?

when I have the it set to GPS it says the mag is invalid on the flight data screen GCS settings tab.

I will post a picture when I can.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revolution Flight Controller GPS Issues
« Reply #3 on: February 09, 2016, 11:44:27 pm »
Like i say in other thread i see (i think) a 0 altitude for your homelocation. Is the right altitude ?

ogre55

  • *
  • 10
Re: Revolution Flight Controller GPS Issues
« Reply #4 on: February 10, 2016, 12:32:18 am »
I set the home location altitude to 25m. that is the altitude where I am flying. the problem did not change.  could it be that the revo is trying to use the mag on the gps module? and it is not working?

here is what i am getting on flight data screen.
#MAG used:  Invalid#

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revolution Flight Controller GPS Issues
« Reply #5 on: February 10, 2016, 07:26:21 am »
Some things:

- external mag is not supported using 15.09, only the OP GPSv9 works as external Mag.
- invalid means the mag is not calibrated or you set AuxMagSettings > Usage to AuxOnly ? (this cannot work, should be Both or OnBoardOnly)

With your setup (450 sized quad) the onBoard mag can be used, take care about strong currents, keep away board from power pcb and twist all wires to reduce magnetical interference.

About altitude, take a look here and use the Clear button. Altitude used take also in account the GeoIdSeparation.
https://librepilot.atlassian.net/wiki/display/LPDOC/Setting+Home+location

ogre55

  • *
  • 10
Re: Revolution Flight Controller GPS Issues
« Reply #6 on: February 11, 2016, 11:40:18 pm »
I have set the home location correctly and recalibrated indoors as well as outdoors without a change.

I have moved the ESC wires and twisted them to try and reduce interference the board no longer seems to think that it is flying while sitting still, however it still will not arm.

after successful calibration of accel mag and gyro
ATTI STAB and MAG alarms still red with GPS green

I feel like I'm missing something stupid or there is something wrong with board.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revolution Flight Controller GPS Issues
« Reply #7 on: February 12, 2016, 12:09:18 am »
Whats your Settings > AuxMagSettings > Usage value ?

When you do the Mag calibration, calibration is successful ?

ogre55

  • *
  • 10
Re: Revolution Flight Controller GPS Issues
« Reply #8 on: February 12, 2016, 05:39:04 am »
aux mag setting is set to both. I have tried to set to Onboard only but it doesn't seem to be persistent.

yes the calibration is successful.

the last time that I calibrated it it took three times for it to be successful.
It may have been because I was going to fast too.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revolution Flight Controller GPS Issues
« Reply #9 on: February 12, 2016, 07:18:51 am »
Not sure if this can help but can you post your config file ?

File > Export UAV settings...

ogre55

  • *
  • 10
Re: Revolution Flight Controller GPS Issues
« Reply #10 on: February 14, 2016, 05:52:45 pm »
here is my export settings

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revolution Flight Controller GPS Issues
« Reply #11 on: February 14, 2016, 07:13:47 pm »
The mag calibration looks strange:

Code: [Select]
<field name="mag_bias" values="35.0716,126.082,1.74313"/>
<field name="mag_transform" values="0.833983,0,0,0,0.930531,0,0,0,39.6811"/>

Especially the last mag_transform value at 39, should be around a 1 value like others.

When you calibrate the Mag, you should move around all axis.
Maybe try the Mag dance ?
You can validate the 5 first steps, do the dance and save last step.



ogre55

  • *
  • 10
Re: Revolution Flight Controller GPS Issues
« Reply #12 on: February 15, 2016, 11:27:55 pm »
this looks like it helped the calibration. I will have to wait until it stops raining here to do some tests.

ogre55

  • *
  • 10
Re: Revolution Flight Controller GPS Issues
« Reply #13 on: February 17, 2016, 12:03:21 am »
that seems to have worked. the board still isn't level. I am going to try and re calibrate for that. (including the dance again.)

thanks for all your help and instruction. I learned a lot.

xfce

  • **
  • 91
Re: Revolution Flight Controller GPS Issues
« Reply #14 on: February 17, 2016, 07:02:10 am »
The mag calibration looks strange:

Code: [Select]
<field name="mag_bias" values="35.0716,126.082,1.74313"/>
<field name="mag_transform" values="0.833983,0,0,0,0.930531,0,0,0,39.6811"/>

Especially the last mag_transform value at 39, should be around a 1 value like others.

When you calibrate the Mag, you should move around all axis.
Maybe try the Mag dance ?
You can validate the 5 first steps, do the dance and save last step.



About the Mag dance calibrate, Am I right as below?
« Last Edit: February 17, 2016, 07:06:33 am by xfce »