Multiwii 2.2 GPS question and PID's

Post Reply
fabianabegglen
Posts: 8
Joined: Sun Jul 28, 2013 6:39 pm

Multiwii 2.2 GPS question and PID's

Post by fabianabegglen »

hi all

i am using the "MultiWii_MEGA2_GPS_HEX6X" code for my Hex.
The following setup i have

-MultiWii PRO 2.0 Flight Controller w/ GPS Option
-Turnigy 4S 5000 mah Lipo
-F550 frame
-DJI 30A OPTO ESC
-Team black Sheep KV900 motors.

Here my question:
Today i flew the first time with the stock settings. I was able to fly around but the whole copter was not really stable.
The baro should help me holding the copter in the same height. This was not perfectly working. Why that? (I put some foam material over the baro to protect from air and light)
And the main issue i have was the GPS position hold. The copter is making big circles in the air once i activate the "GPS HOLD" in combination with "ANGLE" , "BARO" and "MAG". It is not really holding its position.
I have the following modes activated:
-Angle
-Baro
-Mag (magnetic delineation is configured)
(Acc) is calibrated
(Mag) is also calibrated with several sats found in the GUI.

Is there anybody out there which has the same setup or similar and having the same issue.
Can you help me with the PIDS (see attachements)

many thx in advance

fabian
Attachments
screenshot-28.jpg

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: Multiwii 2.2 GPS question and PID's

Post by Alexinparis »

fabianabegglen wrote:hi all

i am using the "MultiWii_MEGA2_GPS_HEX6X" code for my Hex.
The following setup i have

-MultiWii PRO 2.0 Flight Controller w/ GPS Option
-Turnigy 4S 5000 mah Lipo
-F550 frame
-DJI 30A OPTO ESC
-Team black Sheep KV900 motors.

Here my question:
Today i flew the first time with the stock settings. I was able to fly around but the whole copter was not really stable.
The baro should help me holding the copter in the same height. This was not perfectly working. Why that? (I put some foam material over the baro to protect from air and light)
And the main issue i have was the GPS position hold. The copter is making big circles in the air once i activate the "GPS HOLD" in combination with "ANGLE" , "BARO" and "MAG". It is not really holding its position.
I have the following modes activated:
-Angle
-Baro
-Mag (magnetic delineation is configured)
(Acc) is calibrated
(Mag) is also calibrated with several sats found in the GUI.

Is there anybody out there which has the same setup or similar and having the same issue.
Can you help me with the PIDS (see attachements)

many thx in advance

fabian


Hi,

some investigations:
- baro don't like light variation (you can test it via a strong light or sun to see huge alt variation)
- mag don't like power lines (your should check if you mag deviates when you increase throttle)

e_lm_70
Posts: 297
Joined: Fri Aug 09, 2013 8:35 pm

Re: Multiwii 2.2 GPS question and PID's

Post by e_lm_70 »

You should use Horizon, not Angle ... both for GPS-HOLD and GPS-HOME

fabianabegglen
Posts: 8
Joined: Sun Jul 28, 2013 6:39 pm

Re: Multiwii 2.2 GPS question and PID's

Post by fabianabegglen »

Thx for the help.
Today i went to my garden and played with my mobile and the bluetooth module to change the PID on the fly which is very convenient.
But i am not able to get the Baro and GPS Position Hold working. I mean the copter drifts all the time away and it not staying in the position.
I tried several setting with different values, no luck.... I couldn't feel ANY difference in the GPS pos hold behavior.
In the code i have uncommented:
#define MS561101BA
as you can see.
Can anybody help me what i have to do to use the baro and gps.

In the GUI/Android i see the GPS is fine working. 7 Sat's receiving. MAG is calibrated in all three axis. Gyros also calibrated.
My Hexa is really good flying except my just described problem.

I am flying in ANGLE + BARO + MAG activated all the time and GPS HOLD on AUX2.

Thx for you super help
Attachments
screenshot-4.jpg
screenshot-3.jpg
screenshot-2.jpg
screenshot-1.jpg
screenshot.jpg

User avatar
garfield38
Posts: 1
Joined: Sun Sep 01, 2013 8:06 pm
Location: Grenoble France

Re: Multiwii 2.2 GPS question and PID's

Post by garfield38 »

I'm using the same frame and FC board. I think that your mag sensor is polluted by the ESC supply plate. Can you try to exchange with the battery location ? I agree it will not be easy to replace the battery.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Multiwii 2.2 GPS question and PID's

Post by PatrikE »

You can see in the gui if Mag is disturbed by the magnetic field around the power supply plate.
Make sure the copter is firmly secured and check the gui when you apply throttle.
The heading should not change when you throttle up & down.
If it changes the firmware don't know the true heading and will fly in wrong direction!

fabianabegglen
Posts: 8
Joined: Sun Jul 28, 2013 6:39 pm

Re: Multiwii 2.2 GPS question and PID's

Post by fabianabegglen »

I managed it to work with the following settings:

Pos PI:
P: 0.53
I: 0.2

PosR PID:
P: 5.0
I: 0.01
D: My value is 0.100 (Range: 0.000 - 0.250) : 0.060

NavR : 3.4;0.06;0.010

kingsleyfhk
Posts: 6
Joined: Fri Jul 26, 2013 12:38 pm

Re: Multiwii 2.2 GPS question and PID's

Post by kingsleyfhk »

Try selecting your angle and baro too for your Aux 2 fir GPS Holding. I had mine very well with this selected on my Aux 2 mid postion. AUX 2 High position is set to RTH without the baro.

Florent451
Posts: 1
Joined: Thu Feb 06, 2014 4:39 pm

Re: Multiwii 2.2 GPS question and PID's

Post by Florent451 »

Hi fabian,
Can you tell me if you have finally change your PID settings for Pitch Yaw and Roll ?
I have exactly the same setup than you (a F550 and a multiwii 2 board) and my drone is not stable.
I also change rc rate to 0.5 and expo to 0.8 (then 1) but there is no change

Thanks
Florent

nechaus
Posts: 21
Joined: Wed May 14, 2014 12:10 am

Re: Multiwii 2.2 GPS question and PID's

Post by nechaus »

just to check, you have added mag dec ?

Post Reply