Gps Help
« on: April 04, 2017, 01:32:40 am »
Hello!
I have a problem. I built a 450mm quad with a Revolution FC, and it flies beautifully in normal attitude and rate flight modes. However, when I try Position Hold, The quad drops several meters, then flies right past the starting altitude, then drops again. At the same time, it oscillates from side to side and forward and back (going right past the starting position) and after about 10 seconds, I Have to switch back to attitude to avoid a crash.
Specs:
-Ripafire F450 frame
-Emax 2213 935Kv motors
-1045 props
-Arris 30A opto simonK escs
-2700 mAh lipo
-Revolution FC (from Banggood... maybe bad baro?)
-OCDAY Neo-m8n gps for dji naza (very cheap; 30$)
I think the problem might be a bad barometer (up and down oscillation), low quality gps receiver, or bad magnetometer (in gps).
Any help would be greatly appreciated.
Thanks!

Mateusz

  • *
  • 808
Re: Gps Help
« Reply #1 on: April 04, 2017, 05:05:41 am »
Did you test altitude hold with Complementary and thrust mode altitude hold/altitude vario ? Check scopes how baro behaves. +-0.5m so 1m from lowest to highest peak is normal noise. If you have like 5m jumps or just not changing line then baro is not doing g the right job. For magnetometer, did you set AuxMag rotation (orientation) correctly in GCS and in scopes both internal mag and external mag behave the same way ?


startrek66

  • ***
  • 156
  • F330+Revo
Re: Gps Help
« Reply #2 on: April 04, 2017, 08:07:17 am »
As Mateusz said to my knowledge the only problem is the barometer. Try the barometer exclusively Altitude hold and in any case already upon examination of the scope you can make the accurate account without flying. If you can, check if on the pcb of the Revolution  is present a dark sponge.

Inviato dal mio SM-G800F utilizzando Tapatalk


Re: Gps Help
« Reply #3 on: April 04, 2017, 07:38:56 pm »
Up and down is barometer.  it must be covered with open cell foam and maybe even shielded from prop blast.  test this with attitude mode with altitude vario thrust mode.  Get this working before trying GPS modes.

side to side is probably a bad mag setup (mag calibration and location, ALL high power wires (battery, PDB, ESC, motor) twisted properly)

I have never seen a working mag that was bad.

Re: Gps Help
« Reply #4 on: April 04, 2017, 09:40:11 pm »
Thank you for the quick response!
I have tried the altitude hold before and the vertical variation is about 2-3 m; I don't know if that is good or bad. Also, just to clarify, what does it mean to twist power wires? I have not found an explanation for that.  :)

Re: Gps Help
« Reply #5 on: April 04, 2017, 09:52:44 pm »
Also, there is a pdb running right beneath the revolution, so the internal mag is practically useless under any throttle. But at 0% throttle, the internal and external mags both say the same thing. I will still re-calibrate the mags. The baro has foam covering it, but I think it might be a bad one, as I got the revo very cheaply from banggood.

Re: Gps Help
« Reply #6 on: April 04, 2017, 10:34:36 pm »
Short term (1 second to 30 seconds) vertical variation should be very small, almost not visible, maybe 4cm.  When flying baro altitude (but not GPS) If you have long term (minutes) variation of 1 meter or more you need to do thermal calibration.

Also be aware that you must keep sunlight off the baro chip.  Giving or taking away sunlight will make it move several meters.

If it is oscillating 2-3 meters it is not right.  Either the thrust is blowing on the baro or the foam is too thick.

Look at baro altitude with the scopes when it is sitting on the bench.  Total short term (one second) variation of about 1 meter is OK.  Total variation of 2 meters or more is bad.

Twisting ALL the high current power cables decreases the electromagnet effect.  Without doing that, the compass could be useless when motors are running with a load.  Without compass, the FC can't know what direction the quad is facing.  Without that it thinks it needs to fly north when it really needs to fly south, and it instantly flies away faster and faster (or "toilet bowls" if it is not so bad).
« Last Edit: April 04, 2017, 10:38:31 pm by TheOtherCliff »

Mateusz

  • *
  • 808
Re: Gps Help
« Reply #7 on: April 04, 2017, 10:54:41 pm »
Thank you for the quick response!
I have tried the altitude hold before and the vertical variation is about 2-3 m; I don't know if that is good or bad. Also, just to clarify, what does it mean to twist power wires? I have not found an explanation for that.  :)

See attached picture, how magnetic field gets "flattened" and redirected. When wires are twisted you get weaker field in the direction perpendicular to wire.

Re: Gps Help
« Reply #8 on: April 05, 2017, 08:50:25 pm »
Thank you for the quick response!
I have tried the altitude hold before and the vertical variation is about 2-3 m; I don't know if that is good or bad. Also, just to clarify, what does it mean to twist power wires? I have not found an explanation for that.  :)

See attached picture, how magnetic field gets "flattened" and redirected. When wires are twisted you get weaker field in the direction perpendicular to wire.


Sorry, I'm not being clear.
I understand how it works, I just don't know how to do it.

Re: Gps Help
« Reply #9 on: April 05, 2017, 09:02:35 pm »
Do you mean literally twisting the wires like this?
(See attachment below.)

Mateusz

  • *
  • 808
Re: Gps Help
« Reply #10 on: April 05, 2017, 09:08:27 pm »
Do you mean literally twisting the wires like this?
(See attachment below.)

Exactly :)

Re: Gps Help
« Reply #11 on: April 05, 2017, 09:23:09 pm »
Thank you!

Re: Gps Help
« Reply #12 on: August 19, 2017, 05:02:01 pm »
I have done multiple mag calibrations, and PositionHold works better than before, but there are still some oscillations. What is the best way to calibrate the mag? I stand outside well away from cars (and other large metal objects) and have someone else press the "save position" button and tell me which way to orient the quad. However, I am holding it in my hands, so there is some wobble and inaccuracy. Should I use a nonmetal table to help me orient the quad accurately? Is there some better way to do it?
Also, my Revolution does not have any vibration dampening. Do I need it for a good PositionHold?
In the Flight Mode settings, I can set the flight mode to PositionHold, but I can also set the settings bank. If I set this to a more aggressive settings bank, will PositionHold also be more aggressive? If so, how aggressive should I make it?

Re: Gps Help
« Reply #13 on: August 19, 2017, 05:31:35 pm »
Do you have the Attitude -> Magnetometer -> Type (not sure about exact names) set to "aux only"?

Did you know that once you press go for mag calibration that it is constantly gathering data and you must not set it down on the ground or get close to metal from before then to after it is finished?  Also remember to press the Save button at lower right when done.

Re: Gps Help
« Reply #14 on: August 19, 2017, 05:38:00 pm »
Yes and yes.  :)