tailsitter: avoid doing same calculation twice

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2018-02-28 10:08:28 +01:00
committed by Roman Bapst
parent 1d8f588d37
commit b66bc712af
+1 -2
View File
@@ -227,8 +227,7 @@ void Tailsitter::update_transition_state()
_mc_yaw_weight = 0.0f;
// smoothly move control weight to MC
_mc_roll_weight = 1.0f * time_since_trans_start / _params->back_trans_duration;
_mc_pitch_weight = 1.0f * time_since_trans_start / _params->back_trans_duration;
_mc_roll_weight = _mc_pitch_weight = 1.0f * time_since_trans_start / _params->back_trans_duration;
}