ArduPlane: crash_timer stomps human pilot's roll override
In ArduPlane/attitude.pde: static void stabilize() calls first
stabilize_stick_mixing_fbw();
which applies FBW-style RC override, to the nav_roll_cd variable.
Then it calls
static void stabilize_roll(float speed_scaler) { if (crash_timer > 0) { nav_roll_cd = 0; } ....
which means that while crash_timer is active, pilot loses roll override.
Also I request that the crash_timer is renamed as "crash" is confusing. Dive timer, crash-dive timer...?
I'm tempted to just remove crash_timer. It was a very crude mechanism added a long time ago and I think the geo-fencing is much more appropriate for anti-crash now. I think it is more likely the crash timer will cause a problem than save the plane. What do you think?
Hi, I totally agree - features should be removed, not retained, when they are no longer necessary. crash_timer also has the effect that at RTL engage, if the plane was above RTL target altitude is will descend rather steeply and nav-roll will be blocked until finished. This has led some people to believe/complain that RTL does altitude first, then heading. If crash_timer solves a problem with control oscillation at high speed, the solution really belongs in the airspeed scaling.
On Tue, May 28, 2013 at 12:15 AM, Andrew Tridgell [email protected]:
I'm tempted to just remove crash_timer. It was a very crude mechanism added a long time ago and I think the geo-fencing is much more appropriate for anti-crash now. I think it is more likely the crash timer will cause a problem than save the plane. What do you think?
— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/ardupilot/issues/305#issuecomment-18516565 .
Crash_timer is a very old feature. It's a panic state in the AP. It shuts off nav/user control if the plane enters an dive. At least that was the original design. And it works without user configuration, so it has an added layer of security.
I used to fly EasyStar's which are susceptible to rolling over and seeking the ground at high speeds if the plane encounters the right conditions: rudder over-steering + GPS heading lag + the right wind pattern will cause this.
The newer code uses the Z gryo and compass for heading, so this problem may have gone away. Jason
On May 27, 2013, at 3:29 PM, Soren Kuula [email protected] wrote:
Hi, I totally agree - features should be removed, not retained, when they are no longer necessary. crash_timer also has the effect that at RTL engage, if the plane was above RTL target altitude is will descend rather steeply and nav-roll will be blocked until finished. This has led some people to believe/complain that RTL does altitude first, then heading. If crash_timer solves a problem with control oscillation at high speed, the solution really belongs in the airspeed scaling.
On Tue, May 28, 2013 at 12:15 AM, Andrew Tridgell [email protected]:
I'm tempted to just remove crash_timer. It was a very crude mechanism added a long time ago and I think the geo-fencing is much more appropriate for anti-crash now. I think it is more likely the crash timer will cause a problem than save the plane. What do you think?
— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/ardupilot/issues/305#issuecomment-18516565 .
— Reply to this email directly or view it on GitHub.
An ES has no ailerons. Was that via rudder mixing?
On Tue, May 28, 2013 at 12:47 AM, jason4short [email protected]:
Crash_timer is a very old feature. It's a panic state in the AP. It shuts off nav/user control if the plane enters an dive. At least that was the original design. And it works without user configuration, so it has an added layer of security.
I used to fly EasyStar's which are susceptible to rolling over and seeking the ground at high speeds if the plane encounters the right conditions: rudder over-steering + GPS heading lag + the right wind pattern will cause this.
The newer code uses the Z gryo and compass for heading, so this problem may have gone away. Jason
On May 27, 2013, at 3:29 PM, Soren Kuula [email protected] wrote:
Hi, I totally agree - features should be removed, not retained, when they are no longer necessary. crash_timer also has the effect that at RTL engage, if the plane was above RTL target altitude is will descend rather steeply and nav-roll will be blocked until finished. This has led some people to believe/complain that RTL does altitude first, then heading. If crash_timer solves a problem with control oscillation at high speed, the solution really belongs in the airspeed scaling.
On Tue, May 28, 2013 at 12:15 AM, Andrew Tridgell [email protected]:
I'm tempted to just remove crash_timer. It was a very crude mechanism added a long time ago and I think the geo-fencing is much more appropriate for anti-crash now. I think it is more likely the crash timer will cause a problem than save the plane. What do you think?
— Reply to this email directly or view it on GitHub< https://github.com/diydrones/ardupilot/issues/305#issuecomment-18516565> .
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/ardupilot/issues/305#issuecomment-18517275 .
Roll commands were sent to the rudder and accomplished with dihedral. EasyStars are pretty hard to get precise roll angles and they under or over steered pretty bad. If the speed of the oversteer was faster than the lag in heading, you were going to hit the ground hard. Jason
On May 27, 2013, at 3:56 PM, Soren Kuula [email protected] wrote:
An ES has no ailerons. Was that via rudder mixing?
Thanks for the background Jason! I think I will remove it, as in auto the new L1 controller should do a much better job of handling this, and when in FBW, and Stabilize mode I think we should let the pilot tell APM to level the wings when they need to (by removing their hands from the aileron stick!). There are situations where its actually better to crash into the ground than to level the wings, for example if the plane is heading towards a highway where it could be a danger to motorists. ... its now removed in git master Cheers, Tridge