
Jaime,
There’s a long standing issue that sounds exactly like this but it’s caused by an aerodynamic effect on the baro. It should exist in AC3.1.5 though as well.
If you have low vibrations you should be able to increase the INAV_TC_Z from 5 to 7 and you should see the effect becomes less.
-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.

Today I did some test flights with AC3.2rc2, I noticed that after forward flight when stopping the copter losses between 1-3 meters in altitude when stopping. Is there a parameter I need to tweak to fix this? or is this an issue? Also this only happens with forward flight and not with backward flight, and it also is not present with AC3.1.X.
This is a screenshot from the log:
<Screen Shot 2014-07-07 at 12.38.46 AM.png>
This is the video matching this portion of the flight:I can provide the log if anyone is interested.Best Regardos / Saludos,Jaime Machuca Mercado

I didn't realize at first that you were talking about this happening in Stab mode. I had assumed it was Alt Hold or Auto. That is very strange then.
On 7 July 2014 14:02, Jaime Machuca <ja...@droidika.com> wrote:
I have not tried Acro yet. I’ll try it later today, but my vibration levels seems to be ok.
<Screen Shot 2014-07-07 at 1.01.24 PM.png>
Jaime,Can you provide the log files?Chris is correct that AC3.2 properly prioritises altitude over horizontal position (AC3.1.x did not) so hopefully this is not the issue.-RandyFrom: drones-...@googlegroups.com [mailto:drones-...@googlegroups.com] On Behalf Of Jaime Machuca
Sent: July 8, 2014 3:10 AM
To: drones-...@googlegroups.com
Subject: Re: [drones-discuss] AC3.2rc2 Altitude loss after forward flightSorry Robert, this statement:"Yes, but this was not in an auto mode, it was while flying in Stab, and the speed was very sl….”Is wrong!, I meant to say Loiter. So it is an Alt-hold mode.
<image001.png>
Jaime,
Thanks.
So it looks like the aerodynamic effect that’s been mentioned a couple of times on this thread. Looking at the attached pic of a part of the flight in “Hybrid” you can see how the baro alt is ok when the vehicle is pitched back but after leaning forward and then flattening out the Baro jumps up a few meters. The increase in the baro alt pulls the inertial nav alt up and leads to the copter falling. The same thing can be seen earlier in the log when in Loiter mode as well.
This effect should be there in AC3.1.5 as well.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.
--
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.
Jaime,
There shouldn’t be any need to re-tune after switching to EKF. If there’s a difference in the attitude solution then there’s probably an EKF setting that is incorrect. The attitude solutions can be compared by setting USE_EKF to false and then compare the ATT.Roll vs EKF1.Roll and ATT.Pitch vs EKF1.Pitch. If you see a large difference (i.e. more than 1 deg) then reporting it to Tridge and Paul Riseborough would be good.
>>>Then I put master back on and there seems to be much less loss in loiter, but in Hybrid there is still a lot of altitude loss, specially when it starts to break. I still don’t think this is an aerodynamic effect. I’ll post logs in a bit.
The Hybrid and Loiter use the same altitude hold controller. Hybrid’s breaking is likely making the aerodynamic effect more obvious. I’ve already analysed your logs and posted a picture which clearly shows it’s the barometer that is dragging the altitude estimate up.
I appreciate your testing but you should expect issues when flying beta firmware so no apologies.
Sorry Robert, this statement:
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "drones-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drones-discuss/6lJ5M5OR-pw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drones-discus...@googlegroups.com.
Today I did some test flights with AC3.2rc2, I noticed that after forward flight when stopping the copter losses between 1-3 meters in altitude when stopping. Is there a parameter I need to tweak to fix this? or is this an issue? Also this only happens with forward flight and not with backward flight, and it also is not present with AC3.1.X.
This is a screenshot from the log:
David,
Because the problem is the baro affecting the attitude estimate, I’m not surprised that adjusting the altitude control gains doesn’t help. You could reduce the gains on the control and then the actual altitude wouldn’t track the desired alt as well and this might gloss over the problem a bit.
It’s really the alt estimate that needs help. Adjusting the INAV_TC_Z to be a higher value (like 7) makes it rely more on the accels and less on the baro which should help but the downside is that the copter will be more susceptible to vibration affecting the altitude estimate. So break a prop or bend a motor and it’s more likely the vehicle will climb rapidly.
I did a video about a year ago where I tested various time constants and how it affects the alt drop issue.
https://www.youtube.com/watch?v=Vn-Fg53Or4c
-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.
I don't think I read an answer as to why Jaime doesn't see the alt issue with 3.1.5. It's implied that it's "coincidence". E.g., he must be flying 3.1.5 in different barometric conditions which don't exhibit the issue as much. As a software engineer, I don't like coincidences!
That's pretty interesting. I look forward to reading more of your results.
), I was pretty amazed how well yaw and altitude hold copes with any forward/lateral movement.Emile,
I think angle-boost is used in AltHold, etc. I’d love to find a bug in the code but I had a look at this a few days ago and I think it’s being applied:
Alt hold calls pos_controller for Z-axis:
https://github.com/diydrones/ardupilot/blob/master/ArduCopter/control_althold.pde#L78
Bottom level of alt controller, accel_to_throttle, calls the attitude control’s set_throttle_out with ‘angle boost’ set to true.
Maybe you were thrown off by this line which sets the throttle to zero with angle boost false?
https://github.com/diydrones/ardupilot/blob/master/ArduCopter/control_althold.pde#L32
-Randy
The phantom is obviously constructed with pretty careful attention to sensor placement. I saw one in my local hobby shop, it had what looked like the magnetometer or baro or both mounted on the landing gear.
They may also weight barometer less heavily than we do. Never flown one.
I will double check on the angle boost tomorrow (today).
--
You received this message because you are subscribed to a topic in the Google Groups "drones-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drones-discuss/6lJ5M5OR-pw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drones-discus...@googlegroups.com.
David,
If you’ve got the X8, any chance you can do back-to-back as-similar-as-possible tests using AC3.1.5 vs AC3.2-rc7?
There’s not really enough info here for me to track down where the issue might be.
-Randy
--

GPS RelAlt is inertial navigation altitude for some reason. It needs to be removed entirely.
Why do you want to remove it?
