-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Yaw mode manual auto #9146
Yaw mode manual auto #9146
Conversation
I think the MIS_YAWMODE parameter can move to MPC and be renamed appropriately. Generally we want to minimize parameter churn to not break configurations, but in this case the vast majority will be unaffected. We should still make note of the change and call it out in the release notes. |
d8d38e8
to
6d1bf30
Compare
@dagar I replaced it. |
@RomanBapst do you have any insight about vtol yaw handling in the navigator? In particular, why this line was required? |
Obviously we need to check every case, but I'm reasonably certain the proper thing to do is not treat VTOL any differently. The vtol "controller" is capable of overriding the attitude setpoint for things like weathervane mode (ie yaw rate crippling). |
A single is_rotary_wing check should be sufficient. The is_rotary_wing flag is true when a VTOL is in MC mode. |
e35b5c7
to
6d1bf30
Compare
Sorry, we lost track of this PR. Let me know when you're ready to move forward with it. |
close this since obsolete |
Based on the discussion here.
What this PR does:
0
: yaw is not changed and is equal to the yaw when MIS_YAWMODE switched to 01
: yaw is controlled from sticks2
: heading points towards home if available. otherwise mode0
applies.3
: heading points away from home if available. otherwise 1 mode0
applies.Although MIS_YAWMODE is not used in the navigator anymore, I kept this parameter for legacy reason.@dagar, I was very confused about the
heading_sp_update
method (https://github.com/PX4/Firmware/compare/yaw_mode_manual_auto?expand=1#diff-9b5a77642a641b107c8f8a966de34acdL222), in particular about the different flags. For instance, to me it is not clear why the heading update method gets entered if the vehicle is a vtol...The biggest advantage of PR is that for MC, the triplets are no longer sent continuously during mission.