Skip to content

Commit

Permalink
Multicopter mixer - Use already computed value instead of recomputing it
Browse files Browse the repository at this point in the history
  • Loading branch information
bresch committed Mar 23, 2018
1 parent 0728034 commit 077ca2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/mixer/mixer_multirotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 077ca2f

Please sign in to comment.