Holger,
I’ll take those logs if you’ve got ‘em. Alternatively you can post the logs to the AC3.2 thread.
http://diydrones.com/forum/topics/arducopter-3-2-beta-testing
-Randy
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Although the EKF did eventually reject the bad GPS velocities, it was close to doing so earlier. The attached figure shows the normalised innovations starting just prior to the GPS glitch. You can see that the normalised velocity innovation SV almost makes it to the rejection threshold of 1 at the start of the glitch.
The GPS only had 4 sats for most of the flight so regardless of the HDOP it was risky.
Probably the safest strategy in similar circumstances if you needed to fly at low speeds in stabilise would be to disconnect the GPS.
@Gary,There seem to be two situations here:1) Glitch detection problem AND less likely (in this case) but possible
2) RTL due to "Fence Breach" (Isn't this still possible?... Fence enabled, GPS prearm disabled)We have seen cases where in the early stages, takeoff with instable GPS causes GPS glitches. Various levels of effort have gone into resolving these situations, but the fact that GPS glitches and Fence breaches can happen in Stabilize mode means that GPS IS USED IN STABLIZE.Other threads here have also made it clear that GPS IS used in Stabilize mode.Fortunately the damage in this case is minimal, but it is good that it has happened as a reminder. THAT GPS IS USED IN STABILIZE MODE:
Confused ... and scared. I fly a lot indoors or in GPS deprived or poor environments, in stabilize or alt-hold, and always thought that those modes did not involve GPS. ("Directly". I do know about fence, failsafe rtl, and other conditions that would trigger a situation where gps would be needed. I always disable these when I know I have low or zero GPS signal). In addition, stabilize has always been my "goto" and simplest mode when I know conditions are not ideal, I perceive something is wrong, or fly "abnormally", testing. etc ...
I think it’s possible that it’s an EKF vs DCM issue so we should do some more testing of EKF vs DCM’s response to GPS glitches.
Like many have said on this thread, both EKF and DCM use the GPS indirectly for the centrifugal force correction in all flight modes but it’s possible the accelerometers are weighted differently in the two solutions and they are certainly weighted differently between plane and copter. In particular Copter/DCM reduces the weighting of the accelerometers by 8x after arming. This is why with official arducopter you see the HUD move a bit while disarmed but it calms down once the vehicle is armed.
So, let’s be cool, before we have a crisis of confidence, let’s remember that:
· This was flying latest with EKF enabled (not DCM which is the default)
· DCM has been used reliably for years. The centrifugal correction has been there since AC2.4 or earlier and we have never diagnosed a crash as being caused by a GPS glitch affecting DCM’s attitude estimate in Stabilize mode.
-Randy
From: drones-...@googlegroups.com [mailto:drones-...@googlegroups.com] On Behalf Of Paul Riseborough
Sent: 22-Sep-14 11:05 AM
To: drones-...@googlegroups.com
There are two little “tabs” on the DF13 connectors that you can easily and carefully (VERY carefully!!) sheer off to make unplugging and plugging easier. I use an exacto knife on all my DF13’s to do that.
Not trying to go off topic, just providing an alternative in line with Paul’s suggestion that may be easier. I don’t recommend this on Rob’s gas heli, though J
--
Today I made a short test flight - much shorter than originally intended. GPS conditions were pretty bad (several thick layers of clouds), horizon obstructed up to 45° of azimuth, HDOP has improved below 3 when I decided to takeoff.A few seconds after takeoff, hovering in about 1m in STABILIZE, there were sudden uncommanded roll impulses of the copter to the right, I countered them and tried to land asap. Due to tue large roll impulses, I landed on one skid, when the next heavy roll impulse happened, turning the onto its back. As the logs reveal, during arming the HDOP went to about 6, coming back to 2.6 during flight, and jumping back to 6 shortly before the crash. During the seconds before the crash, there were amazing GPS speeds (around 10m/s), while the copter was definitely nearly static. Binlog is available on PN request.Is there any way to safely and completely disable any GPS support for this kind of test flight? Is setting EKF_USE to 0 enough?Holger
I’ve done a little testing today with DCM (and EKF to a lesser extent) to better judge what impact a large change in velocity from the GPS would have on the attitude. I’ve created a little video showing the impact which seems quite small (about 4deg for a 20m/s change). https://www.youtube.com/watch?v=I2aPw1jNZDs&feature=youtu.be.
I’ve also tested turning off the correction by setting the AHRS_USE_GPS parameter (or AHRS_GPS_GAIN parameter) to zero and indeed it seems to remove the correction completely.
-Randy
--
Yes, it has been worthwhile. Thanks a lot Paul. My apologies to Holger that I didn’t more quickly realise the importance of his report and for being a bit defensive.
To be clear Holger’s uncommanded roll would not have happened had his vehicle been using DCM.
-Randy
From: drones-...@googlegroups.com [mailto:drones-...@googlegroups.com] On Behalf Of Paul Riseborough
Sent: 22-Sep-14 7:43 PM
To: drones-...@googlegroups.com
Subject: [Bulk] [drones-discuss] Re: Crashed in STABILIZE due to (very) bad GPS conditions with EKF enabled
Well, this has been a worthwhile exercise. Whilst discussing the behaviour with Randy, I realised that there is a AHRS_GPS_MINSATS parameter that the EKF is currently not using. This would have prevented the EKF from using the bad GPS data in Holgers case as it is set by default to 6, and he had 4 and sometimes 5 satellites.
I will put together a patch so the AHRS_GPS_MINSATS parameter is used the same way with EKF selected as it is with DCM/INAV.
Thank you to Holger for the valuable test data.
--
John, I'm not the highest mind in here to reply, but I'll share my two cents.
It is not fundamentally wrong, I'ts fundamentally correct.
If you detach your GPS from APM, it will still fly great, but it will miss something that we have and that is a must for certain platforms (eg. plane)
While in high G maneuvers, the accels will get confused by the centripetal acceleration and report an incorrect inclination.
While this (please somebody correct me if I'm wrong) is less evident in copters as they have a totally different way of "moving" it is greatly seen in planes.
Just to give you an example, try to place your KK2 in a car on your instrumental panel in an horizontal position, then drive and put yourself in a roundabout and start spinning around. Take a look at the artificial horizon (if any) and tell me what you see.
You will probably notice the artificial horizon display an incorrect inclination (even opposite of the one the car has due to suspensions).
Then try to make big brakes and linear accelerations, this also will result in a pitch in the opposite direction.
I agree though that GPS corrections should be done in a higly reliable situation, when we know GPS is not going cucu, but this does not mean that it is wrong.
So IMHO GPS correction is a feature not a bug.
Comparing KK2 and APM should probably be done on a plane during an auto mission...
Cheers,
Emile
--
I too had a crash or better described as a fly away. I am fairly certain either a complete loss of gps was involved or bad gps data was involved. It started acting odd like it was toilet bowling whist hovering with the wind. I tried RTL, loiter, and poshold [ 3.2 beta ] but it continued to simply drift away. As a last measure I tried stabilize but it was dark and it was hopelessly far away and down wind. I had many problem free flights with 3.2 leading up to this but had just added the Ublox M8.Question.... does the gps itself use the sat data to report to the pixhawk position and velocity data or does the pixhawk take all those raw numbers and calculate it itself? The reason I ask is it has occurred to me that a higher sat count might require more processing ability?? yes?? No ?? I have no idea how that works. But for right now I am suspect of the M8. Maybe many including me have been star struck by the impressive sat count and yet remain unaware of other issues with it?? Just a thought.
Emile
What configuration the m8 needs ? I thought that the pixhawk was configuring it properly.
I had massive problem with it and I am trying to find the interference source as well. All modes were unstable and I have ekf on.
3dr GPS with the exact same setup was rock solid.
Matthias
You could route the power (red) wire to the GPS through a switch or in-line connector.
I’ve merged these into AC3.2 branch. I’ll give a test flight tomorrow and then likely push –rc10.
-Randy
From: drones-...@googlegroups.com [mailto:drones-...@googlegroups.com] On Behalf Of Paul Riseborough
Sent: 23-Sep-14 7:18 PM
To: drones-...@googlegroups.com
Subject: [Bulk] [drones-discuss] Re: Crashed in STABILIZE due to (very) bad GPS conditions with EKF enabled
Here are a couple of patches that reduce the likelihood of bad GPS affecting EKF attitudes during flight with less than 6 satellites. The first patch requires at least 6 satellites for EKF to start, the second reduces GPS measurement weighting if it has started and the number of satellites drops below 6.
--