LibrePilot Forum
Users => Vehicles - MultiRotors => Topic started by: ogre55 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 (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.
https://www.youtube.com/watch?v=19BrfNeEYu4 (https://www.youtube.com/watch?v=19BrfNeEYu4)
-
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
-
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.
-
Like i say in other thread i see (i think) a 0 altitude for your homelocation. Is the right altitude ?
-
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#
-
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
-
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.
-
Whats your Settings > AuxMagSettings > Usage value ?
When you do the Mag calibration, calibration is successful ?
-
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.
-
Not sure if this can help but can you post your config file ?
File > Export UAV settings...
-
here is my export settings
-
The mag calibration looks strange:
<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.
https://www.youtube.com/watch?v=-_mjfPlHL9o
-
this looks like it helped the calibration. I will have to wait until it stops raining here to do some tests.
-
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.
-
The mag calibration looks strange:
<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?
-
The mag dance or following the steps has a goal, move every mag axis in all 3D space.
GCS instructions still valid, look also to the Help tab: No need to know where is the physical North.
-
The mag dance or following the steps has a goal, move every mag axis in all 3D space.
GCS instructions still valid, look also to the Help tab: No need to know where is the physical North.
OK, thanks. I know the help contest.
I thought you mean when cal the mag, use the mag dance would give a better mag performance.
-
It should not even arm with mags that bad. You shouldn't change the MagnetometerMaxDeviation just to get it to arm.
Mag calibration is continuously gathering data so you can't set it down at all.
Read the Mag Calibration section here about that.
https://librepilot.atlassian.net/wiki/display/LPDOC/Aux+Mag+Setup+and+Calibration