-
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
remove the yaw inversion in 3D mode when platform is set to ROVER #3128
remove the yaw inversion in 3D mode when platform is set to ROVER #3128
Conversation
src/main/flight/servos.c
Outdated
// Reverse yaw servo when inverted in 3D mode | ||
if (feature(FEATURE_3D) && (rcData[THROTTLE] < rxConfig()->midrc)) { | ||
// Reverse yaw servo when inverted in 3D mode except in ROVER mode | ||
if (feature(FEATURE_3D) && (rcData[THROTTLE] < rxConfig()->midrc) && mixerConfig()->platformType != PLATFORM_ROVER) { |
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.
@eephyne maybe it would make more sense to reverse this condition? So then yaw would be reversed only for platform_type multirotor and tricopter? So boats, rovers and other and whatever would not have it? What do you thing?
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.
thats indeed a better way to do it. you sure its useful only for multirotor and tricopter ?
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.
I'm not even sure there are 3D Tricopters. If so then only Multirotors would reverse it
@stronnag ? I'm even thinking about decoupling 3D Mode from yaw reversal and renaming it to "Reversible motors" or something. But small steps.
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.
shouldn't we add also helicopter ? even if I seriously doubt there is anybody using inav on a helicopter…
To my understanding you only need yaw inversion, because the rotation
direction of the props change on a multi-rotor. On a collective pitch
helicopter this is not the case and yaw acts the same way as flying
right-side-up.
I have a friend who experimented with 3d tricopters at some point. From
what I recall it was definitely possible (and needs yaw reversal), but the
rudder servo has to quickly jump to a new position when the motors are
reverse inverted. I believe someone from the flight test crew was working
on that whole 3d tricopter thing.
…On Thu, Apr 26, 2018 at 11:49 AM eephyne ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/main/flight/servos.c
<#3128 (comment)>:
> @@ -381,8 +381,8 @@ void servoMixer(float dT)
input[INPUT_STABILIZED_PITCH] = axisPID[PITCH];
input[INPUT_STABILIZED_YAW] = axisPID[YAW];
- // Reverse yaw servo when inverted in 3D mode
- if (feature(FEATURE_3D) && (rcData[THROTTLE] < rxConfig()->midrc)) {
+ // Reverse yaw servo when inverted in 3D mode except in ROVER mode
+ if (feature(FEATURE_3D) && (rcData[THROTTLE] < rxConfig()->midrc) && mixerConfig()->platformType != PLATFORM_ROVER) {
shouldn't we add also helicopter ? even if I seriously doubt there is
anybody using inave on a helicopter…
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3128 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ANiDSRpaYuk2x1xR5vqpK5Y2FVwkczTAks5tsex2gaJpZM4TlYZ3>
.
|
So multirotor and tricopter are enough then |
hum, since my esc burned out after rapidly testing my change, I could not test it in depth. (burn not related). |
Yaw inversion in not wanted when used for steering in ROVER mode.
This simply deactivate this.
Its a fix to wait until there is a real support for rover, since 3d mode is the only way to use reversable esc.