Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
Signed-off-by: RomanBapst <[email protected]>
  • Loading branch information
RomanBapst committed Mar 17, 2020
1 parent 88d7990 commit c052b63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ void FlightTaskTransition::updateAccelerationEstimate()

bool FlightTaskTransition::update()
{
// level wings during the transition, altitude should be controlled
// demand zero vertical velocity and level attitude
// tailsitters will override attitude and thrust setpoint
// tiltrotors and standard vtol will overrride roll and pitch setpoint but keep vertical thrust setpoint
_thrust_setpoint.xy() = matrix::Vector2f(0.f, 0.f);
_thrust_setpoint(2) = NAN;
_position_setpoint *= NAN;
Expand Down
2 changes: 2 additions & 0 deletions src/modules/vtol_att_control/standard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ void Standard::update_transition_state()
} else if (_vtol_schedule.flight_mode == vtol_mode::TRANSITION_TO_MC) {

_v_att_sp->roll_body = _fw_virtual_att_sp->roll_body;

// control backtransition deceleration using pitch.
_v_att_sp->pitch_body = update_and_get_backtransition_pitch_sp();

const Quatf q_sp(Eulerf(_v_att_sp->roll_body, _v_att_sp->pitch_body, _v_att_sp->yaw_body));
Expand Down

0 comments on commit c052b63

Please sign in to comment.