mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 20:28:37 +08:00
Multicopter mixer - Use already computed value instead of recomputing it
This commit is contained in:
@@ -220,7 +220,7 @@ MultirotorMixer::mix(float *outputs, unsigned space)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
roll_pitch_scale = 1 / (max_out - min_out);
|
roll_pitch_scale = 1 / (delta_out_max);
|
||||||
boost = 1.0f - ((max_out - thrust) * roll_pitch_scale + thrust);
|
boost = 1.0f - ((max_out - thrust) * roll_pitch_scale + thrust);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user