mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +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 {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user