New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copter: add sanity check of baro readings #436
Comments
This is added to the "AC with only Tablet" milestone after developer discussion brought up that switching to stabilize and controlling with the virtual sticks while possible, may be less of an option with the tablet only interface. |
A spike filter should be applied to the baro alt. This could take the form of a rate of change limiter set to the maximum copter climb/descent rate plus margin. This could also be made asymmetric such that the rate limit is applied when the baro alt moves away from the inertial altitude, but not when it moves towards it. |
+/- 10% ? |
The consequences for hitting the limiter whilst descending are not good (height undershoot into the ground), so I would go for a bit more. |
Would be time based. X% over Yms. Weighted average? All time based allowing change. |
Simple rate of change limiter would suffice. |
I'm noob to terms. Simple rate of change limiter? Wouldn't that be what I described? +/- 10% rate of change over small increment of time. Or weighted average? |
No - it has a specific meaning. Here's an example. http://www.mathworks.com.au/help/simulink/slref/ratelimiter.html |
(just crashed, details here #968) A better strategy is a corelative filtering between baro alt, gps alt and Z acceleration (Kalman). |
EKF implemented in master does reject baro spikes. |
yeah...tell that to APM users |
This should be fix with this commit (and the 10 or so that follow it): This will go out with AC3.2-rc4 |
Hy
Today I had a crash with the ArduCopter v3.0.1-rc1 firmware. Never experienced that before so I was really surprised that this can happen.
I first flew manually and set the copter to loiter. Then manually again and finally to loiter. Suddenly all the motors almost stopped spinning and the copter came down from 10m above ground and crashed to the ground.
The log file can be downloaded from my post:
http://diydrones.com/forum/topics/arducopter-v3-0-1-rc1-sudden-crash-out-of-loiter
In the log file you can see that the "throttle out" suddenly went down to 130 without any reason...
EDIT: Probably I found the problem, there was a huge spike from the BarAlt (jumped from 9.09m to 5275m) so there is probably the problem...
Andy
The text was updated successfully, but these errors were encountered: