-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Speed control and RTH/FAILSAFE improvements #1401
Conversation
digitalentity
commented
Mar 13, 2017
- Split auto/manual speed and climb rate limitation
- Remove 2D RTH
- RTH sensor loss refactoring
What does remove RTH 2d mean? |
Originally it was possible to activate RTH mode if you don't have an altitude sensor - it will just fly home at current throttle without maintaining altitude. I'm taking this away now - it's potentially unsafe and actually useless feature. |
By 'not having altitude sensor' is included GPS altitude? |
@sppnk "not having altitude sensor" is machine-specific. For quads it's not having barometer sensor. For planes it's not having barometer and not having a GPS fix. |
ok, good to know. |
@digitalentity Hmm, maybe the current implmentation was useless. But even a multirotor would probably get home nicely without barometer and only relying on GPS altitude? |
@oleost it might. But I feel that having a barometer is benificial for an airplane as well. |
@digitalentity Yes. |
Looks great.The code will be cleaner than before. |
It would be good if somebody can test this code - I'm sick at the moment and unable to fly my birds. |
Last day I tested it with my wingwing.It looks great but I wonder why my pitch channel didn't work when changing althold mode?Maybe I will test this branch again today. |
Nice today..It didn't have any problem about this operation. |
Seems like in 1.7 there the "bug" still here @digitalentity despite it has being fixed as this PR and #798 Using: set nav_auto_speed = 800 I get steady 8m/s in PH CRUISE instead of expected 10m/s as you can see from the logs. I'm pretty sure I was full pitch when I was a 8m/s and there was no strong wing. |
@giacomo892 I believe @DzikuVx tested it successfully. |
@digitalentity you can check for more logs if you need in #1675 |
@digitalentity No I did not |
@giacomo892 in your log I see velocity target reaching 9m/s and actual velocity reaching 9m/s as well. Certainly not 8m/s. Are you sure you have |
@digitalentity Maybe it is rounded and there could be some wind. With MWP I mostly see it as 8m/s and some spikes to 9 as you say. this is the diff I saved on file:
Yes, the diff show it, but to be 1000% sure I'll check it again on friday. |
@giacomo892 I've just found a bug that prevents manual control from reaching the |
It's nice when I can help spotting bugs. Thanks for your investigation and when you have time please visit #1675 ;) |