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
Turtle/Flip after crash: Add options to use all the motors #5600
Conversation
src/main/flight/mixer.c
Outdated
|
||
|
||
if (motorOutput < 0 && mixerConfig()->crashflip_motor_percent > 0) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brace on the same line as the condition please, only functions use braces on a new line (K & R style).
src/main/flight/mixer.c
Outdated
|
||
if (motorOutput < 0 && mixerConfig()->crashflip_motor_percent > 0) | ||
{ | ||
motorOutput = -motorOutput * (float)mixerConfig()->crashflip_motor_percent/100.0f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces around operators please.
a344ff7
to
3e4e958
Compare
Got a bug with this right now, going to fix it... |
3e4e958
to
503a44a
Compare
It is fixed now. |
Rebase after #5627 has been merged - that should fix the overflow. |
503a44a
to
9ca0b77
Compare
From: Turtle/Flip after crash: Add options to use all the motors betaflight#5600 betaflight#5600
Added crashflip_motor_percent. This will use the other motors while doing a turtle. This is typically only useful on lower power ducted quads. Setting to 0 will use just 2 motors which is the default. 50-70% seemed to work for getting a brushless tinywhoop flipped over easier.
Quick test here: Helps a lot!
http://www.youtube.com/watch?v=Qwh1MBNnZj4
Tinywhoop.com helped me with some motors and frames to test!