vtol attitude control: fixed code style

Signed-off-by: tumbili <roman@px4.io>
This commit is contained in:
tumbili
2016-06-22 11:14:35 +02:00
committed by Roman
parent bbf852787e
commit c1ba7ab62b
+3 -1
View File
@@ -251,10 +251,12 @@ void Standard::update_transition_state()
_mc_throttle_weight = weight; _mc_throttle_weight = weight;
// time based blending when no airspeed sensor is set // time based blending when no airspeed sensor is set
} else if (_params_standard.airspeed_mode == control_state_s::AIRSPD_MODE_DISABLED && } else if (_params_standard.airspeed_mode == control_state_s::AIRSPD_MODE_DISABLED &&
(float)hrt_elapsed_time(&_vtol_schedule.transition_start) < (_params_standard.front_trans_time_min * 1000000.0f) (float)hrt_elapsed_time(&_vtol_schedule.transition_start) < (_params_standard.front_trans_time_min * 1000000.0f)
) { ) {
float weight = 1.0f - (float)(hrt_elapsed_time(&_vtol_schedule.transition_start) / (_params_standard.front_trans_time_min * 1000000.0f)); float weight = 1.0f - (float)(hrt_elapsed_time(&_vtol_schedule.transition_start) /
(_params_standard.front_trans_time_min * 1000000.0f));
_mc_roll_weight = weight; _mc_roll_weight = weight;
_mc_pitch_weight = weight; _mc_pitch_weight = weight;
_mc_yaw_weight = weight; _mc_yaw_weight = weight;