mixer multirotor: initialise min_out with correct value

This commit is contained in:
tumbili
2016-04-11 15:35:51 +02:00
parent 092efd22fd
commit 2f7601370b
@@ -227,7 +227,7 @@ MultirotorMixer::mix(float *outputs, unsigned space, uint16_t *status_reg)
float pitch = constrain(get_control(0, 1) * _pitch_scale, -1.0f, 1.0f);
float yaw = constrain(get_control(0, 2) * _yaw_scale, -1.0f, 1.0f);
float thrust = constrain(get_control(0, 3), 0.0f, 1.0f);
float min_out = 0.0f;
float min_out = 1.0f;
float max_out = 0.0f;
// clean register for saturation status flags