Skip to content
Snippets Groups Projects
Commit 2655c72c authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Lorenz Meier
Browse files

mission: remove altitude foh for rotarywing

parent 8e99c73f
No related branches found
No related tags found
No related merge requests found
......@@ -1119,8 +1119,10 @@ Mission::altitude_sp_foh_update()
pos_sp_triplet->current.alt = a + grad * _min_current_sp_distance_xy;
}
// we set altitude directly so we can run this in parallel to the heading update
_navigator->set_position_setpoint_triplet_updated();
if (!_navigator->get_vstatus()->is_rotary_wing) {
// we set altitude directly so we can run this in parallel to the heading update
_navigator->set_position_setpoint_triplet_updated();
}
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment