-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[rotorcraft] improve in_flight detection heuristic #469
Conversation
Simply checks if thrust, speed and acceleration are above a threshold. Does not rely on RC thrust command anymore, but only on actual thrust command. Not tested on real vehicle at all so far... Attempt to improve issue paparazzi#201 and replaces paparazzi#468
Works ok for me here... anyone else tested this? |
@dewagter unless you object I'll merge this... |
* in_flight_heuristic: [rotorcraft] improve in_flight detection heuristic
Was it tested in flight? At least once? Just making sure, unfortunately I can't test it right now. |
I did a short test flight with my quad and it was working ok... but it might not detect the change from in_flight to not in_flight as good if your velocity and acceleration estimates are bad. |
Code looks nice. (I like the very low throttle but still high downward speed = airborne) Still must check in-flight though. Should this solve the airborne kill mode in auto-land? I'm not a huge fan of airborne kill mode. |
This is not intended as a replacement for the KILL_ON_GROUND_DETECT using DetectGroundEvent() |
Should we leave these values at default? Or maybe set higher throttle threshold, so that it doesn't go into in_flight if your rc is not calibrated well and you already have a small throttle command at throttle stick down? |
If you look at the vertical velocity estimate it seems to go back to zero (actually a bit further) and then up again. |
We also tested this... (the 2nd takeoff the motors did not spin so it did -Christophe On Thu, Aug 29, 2013 at 6:19 PM, Felix Ruess notifications@github.comwrote:
|
With the last two commits the issue of not being able to properly takeoff again after a landing should be fixed as well (without going to halting point with kill in between, e.g using KILL_ON_GROUND_DETECT). |
Does anyone want to do some further tests before we merge this to master? |
@dewagter can we merge this? I also increased the default MIN_THRUST threshold to 500 (~5%) as that should make it more robust to slightly miscalibrated RC... |
[rotorcraft] improve in_flight detection heuristic and fix takeoff-land-takeoff in nav
yes. now takeoff after a land works fine. -Christophe On Wed, Sep 4, 2013 at 3:30 PM, Felix Ruess notifications@github.comwrote:
|
Simply checks if thrust, speed and acceleration are above a threshold.
Does not rely on RC thrust command anymore, but only on actual thrust command.
Attempt to improve issue #201 and replaces #468
While here fix the takeoff-landing-takeoff sequence in navigation...