Multicopter mixer - Use already computed value instead of recomputing it

This commit is contained in:
bresch
2017-09-20 19:16:01 +02:00
committed by Roman Bapst
parent 803eb9ac32
commit 851c3657d1
+1 -1
View File
@@ -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);
}