mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 06:13:34 +08:00
vtol_att_control: switch from division to multiplication for variable
calculation Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -119,7 +119,7 @@ void Standard::update_vtol_state()
|
||||
*/
|
||||
|
||||
float mc_weight = _mc_roll_weight;
|
||||
float time_since_trans_start = ((float)(hrt_absolute_time() - _vtol_schedule.transition_start)) / 1e6f;
|
||||
float time_since_trans_start = (float)(hrt_absolute_time() - _vtol_schedule.transition_start) * 1e-6f;
|
||||
|
||||
if (!_attc->is_fixed_wing_requested()) {
|
||||
|
||||
@@ -232,7 +232,7 @@ void Standard::update_vtol_state()
|
||||
void Standard::update_transition_state()
|
||||
{
|
||||
float mc_weight = 1.0f;
|
||||
float time_since_trans_start = ((float)(hrt_absolute_time() - _vtol_schedule.transition_start)) / 1e6f;
|
||||
float time_since_trans_start = (float)(hrt_absolute_time() - _vtol_schedule.transition_start) * 1e-6f;
|
||||
|
||||
VtolType::update_transition_state();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user