Servers by jDrones

Looks like AP3.5 GUIDED mode crashed my plane (solved by AP 3.5.2)

@tridge , I just did some test flights with 3.5.2 today, with full flaps down, breached the low altitude fence, and let GUIDED take over a few times.
While it struggled to stop the descent the bit and regain altitude (and that’s expected, the flaps are big), it did the right thing and went back up.
So at this point, I have some confidence that your fix did indeed fix something :slight_smile:
The other logs I gave in this bug may still point to some separate issues since the last near crash happened without the flaps down if I recall correctly, but at least the GUIDED takes over with flaps down case seems to work ok now.

Also, I have crow fflaps with differential throws and going to 130%, so I’m not sure how possible or easy it is to set them up as flaps controlled by AP, but if I do, should I assume that GUIDED wiill do the right thing and retract the flaps when it needs to fly back up?

@tridge, you asked for logs showing GUIDED fly back up with the flaps down.
I just did this today,

At 3:22, I disabled geofence, used MANUAL and put full flaps to drop below 100m,
guided takes over and climbs back to 100m

So that’s good :slight_smile:
What’s not so good was that my fence return altitude was 150m, and it only went back to 100m
PARM, 651332702, FENCE_ACTION, 1
PARM, 651332718, FENCE_TOTAL, 6
PARM, 651332734, FENCE_CHANNEL, 8
PARM, 651332839, FENCE_MINALT, 100
PARM, 651332855, FENCE_MAXALT, 1000
PARM, 651332870, FENCE_RETALT, 150
PARM, 651332902, FENCE_RET_RALLY, 1

I did not have a rally point, so it went back to the takeoff point, which is good, but ignored the 150m and went back to 100m.
Any idea why?
Then, there are clear issues with airspeed, but I put that in another message: Why does airspeed not reset to 0 before takeoff and why did autocal make it worse?

Mmmh, actually in my next flight where I crashed RTL failed to recover from inverted flight and spun backwards into the ground check (offset 06:52)
CRUZ is hoping up and down, which looks a biti weird

@tridge you can load the 57s CRUIISE segment between GUIDED 1s and FBWA, it’s the part where the plane keeps nudging up and down.
I had a look with Mavproxy, but I’m not sure if I’m figuring out what’s wrong. Is it a problem with PID? I had flown that airframe a fair bit since autotune, and never experienced this up/down problem (actually I think it didn’t happen for the rest of the flight)

Looking at these graphs, all I seem to see is AP commanding that pitch to go up and down

@tridge more reading seems to say that PTCH2SRV_P could cause porpoise.
Looks like autotune gave me 0.92 for it, not sure if it’s too high.
Still, weird that I never had porpoise behaviour until this flight.

PTCH2SRV_D 0.074393
PTCH2SRV_FF 0.000000
PTCH2SRV_I 0.062053
PTCH2SRV_IMAX 2000.000000
PTCH2SRV_P 0.929917
PTCH2SRV_RLL 1.000000
PTCH2SRV_RMAX_DN 90.000000
PTCH2SRV_RMAX_UP 90.000000

I guess when I get my plane repaired after its last crash, I can try the steps from if autotune isn’t doing quite the right thing for my plane anymore.

Is RTL supposed to auto-land? Or does the plane circle overhead? Thanks.

@ripfree: you are totally asking this in the wrong place. It circles overhead. Please use a new thread for questions, don’t hijack another one :slight_smile:

absolutely brilliant your analisis above, thanks a lot for contribute to this knowledge.

I have experienced many different behaviors thinking that something is wrong in multicopters and plane but almost always the solution turns out to be a summation of conditions and parameters set correctly . This discipline takes time and patience.

373 01-01-1970 05-30-00.bin (2.0 MB)
Hi, Crashed Skywalker Arduplane 3.40 when switched to RTL while ythe plane was in guided mode “Go to Here”

I can see that there is no Airplane firmware upgrade for APM beyond 3.40 and I can see that the bug was resolved in Arduplane 3.52. Can someone help for a patch for APM Arduplane 3.40 ?

@Rana As you may have seen in more than one announcement, the orginal APM isn’t supported anymore, so unfortunately you shouldn’t really expect firmware updates for your flight controller anymore.
The original APM has been obsolete for more than 2 years now, my recommendation if you care about your airframes is to stick to a pixhawk clone, or better from now on.

I have many many APM’s and want to use them, so if either Tridge or someone else can share the patch to take care the issue of crash in guided then I could make use of these APM’s

I have many pixhawk too but want to use the APM also.

@Rana, I had a look at your log (“373 01-01-1970 05-30-00.bin”) and it doesn’t look anything like the issue that Marc previously saw.
The first thing I notice in your log is that no roll or pitch tuning has been done - it is just using the defaults. It looks like the gains are way too low. Because of the very low gains it takes a long time to build up enough elevator to start to pull up when it is descending. The main thing you need to do is run an autotune, or even just manually increase the P and I gains or both roll and pitch. It takes nearly six seconds to build up enough pitch integrator to start to pull up, and that is much too long. You probably need about 5x the integrator gain, and 3x the P gain at a rough guess.
I am happy to do a new bug fix only release for the APM2 if a really serious bug is found and I have a log that shows it is needed, but this is not an example of that sort of problem.
Cheers, Tridge

Trige, many many thanks for the reply bro !

If gains are suspected culprit then the same skywalker plane with which I have done more than 200 successful auto mission flights with APM2 only should have not been.

I mean I never initiated RTL in guided mode in any of my flights with APM prior to 3.4.

Prior to this crash, the this skywalker plane with same APM2 has done few successful flights in auto mode without any issue and that is too with default parameters. Below is link to some of very successful long missions with Skywalker with default parameters in APM2.

Below is the telemetry log file’s video clip of small portion of this flight in which crash happened.

Telemetry Log.tlog (523.9 KB)

I mean I have seen that Skywalker always does well with APM2 default parameters. But this does not mean that I should keep on using default parameter.

I will do as you suggested. I will change the parameters approximately to what you suggested or autotune it.

When the APM2 bug fix you are planning to release ?

Best Regards

That is one of the problems with the ArduPilot controllers - it does fly OK in many situations even with terrible tuning. That is nice for people who don’t want to bother tuning, but it means they get complacent and don’t tune. Then when the vehicle is in a bit different situation and has to recover attitude quickly it will not recover.
I flew a skywalker with an APM2 as my main test plane for a couple of years. My parameters were:

  • PTCH2SRV_D 0.07
  • PTCH2SRV_I 0.3
  • PTCH2SRV_IMAX 3000
  • PTCH2SRV_P 1.8
  • PTCH2SRV_RLL 1.1
  • RLL2SRV_D 0.1
  • RLL2SRV_I 0.3
  • RLL2SRV_IMAX 3000
  • RLL2SRV_P 2.2

note that they are a very long way from your parameters! The control surfaces on a skywalker are really quite small, so it needs a lot of gain to fly well.
Don’t just use my parameters btw, better to run an autotune. The right parameters depend on several factors that are dependent on the specific airframe (eg. which hole in the control horn you use).
Cheers, Tridge

I will only do a new APM2 release if a serious bug is reported that warrants the work to do that release. So far I haven’t seen any bug reports that are sufficiently serious to do a new release. I looked into your log as I thought perhaps that would be one, but it turn out it is just tuning.
Cheers, Tridge

Hi Tridge, once again many many thanks for you time and support.
Also thanks for sharing your parameters.

I would try to use your parameters and then check in in stabilized mode at ground it all control surfaces are behaving properly.

Only then would do a small test flight at around 200mt alt then try to see if the model is doing well in stabilized and auto.

If it does well then at around 200mt altitude, I will put the plane in guided mode preferably not much away from me and then will initiate RTL and see.

Thanks for confirming that no serious bug reported so far in AP3.40 for APM2

Once again thanks a lot for your wonderful support bro.

Best Regards

@marcmerlin Are the crow flaps on a pass through channel? Or does guided mode turn them off?
I’m quite late to this, but the clue seems to be “turn to bleed off altitude with crow flaps enabled”. If your crow flaps are any good and on a passthrough channel, then no way can you gain altitude even at max throttle with crow flaps on. Once the Autopilot takes over it needs to take control of the crow flaps as well and turn them off.

Hi, thanks for coming in. Skywalker does not have flaps, could it cause a crash if enabled but not used ?

Tridge, I realized later that by mistake I kept the airspeed sensor enabled but actually not used the airspeed sensor, could it have caused crash ?

Best Regards

Hi Rana, Apologies I was responding to the original post by marcmerlin ( I edited my previous post to clarify that)

Tridge, what about this one: ?
My wife didn’t like much plane-on-full-throttle once I was “playing” in our livingroom…

Servers by jDrones