Skip to content

Commit

Permalink
VTOL pusher assist: return vehicle to level position
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderux authored and LorenzMeier committed Jul 10, 2017
1 parent 81c46b6 commit 7017826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/vtol_att_control/standard.cpp
Expand Up @@ -391,8 +391,8 @@ void Standard::update_mc_state()
_pusher_throttle = (sinf(-pitch_forward) - sinf(_params_standard.down_pitch_max))
* _v_att_sp->thrust * _params_standard.forward_thrust_scale;

// limit desired pitch
float pitch_new = -_params_standard.down_pitch_max;
// return the vehicle to level position
float pitch_new = 0;

// create corrected desired body z axis in heading frame
matrix::Dcmf R_tmp = matrix::Eulerf(roll_new, pitch_new, 0.0f);
Expand Down

0 comments on commit 7017826

Please sign in to comment.