Skip to content
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

FW pos C: fix altitude control for VTOL/FW by also publishing attitud… #12920

Merged
merged 3 commits into from
Sep 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,8 @@ FixedwingPositionControl::Run()
if (_control_mode.flag_control_offboard_enabled ||
_control_mode.flag_control_position_enabled ||
_control_mode.flag_control_velocity_enabled ||
_control_mode.flag_control_acceleration_enabled) {
_control_mode.flag_control_acceleration_enabled ||
_control_mode.flag_control_altitude_enabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfuhrer Nitpick, but maybe you can use flag_control_climb_rate_enabled. I think that's how it's used in other locations and in theory could run TECS in climb rate mode. What do you think? Otherwise good to go.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it matters right now, but we should do a pass to make sure these are handled consistently and to even know where the holes are in offboard.


/* lazily publish the setpoint only once available */
if (_attitude_sp_pub != nullptr) {
Expand Down