Skip to content
Snippets Groups Projects
Commit cdd7c57d authored by bresch's avatar bresch Committed by Lorenz Meier
Browse files

Multicopter mixer: When saturating, compute the new yaw value based on

the reduced thrust value
parent a0ee07e3
No related branches found
No related tags found
No related merge requests found
......@@ -334,7 +334,7 @@ MultirotorMixer::mix(float *outputs, unsigned space, uint16_t *status_reg)
} else {
yaw = (1.0f - ((roll * _rotors[i].roll_scale + pitch * _rotors[i].pitch_scale) *
roll_pitch_scale + thrust + boost)) / _rotors[i].yaw_scale;
roll_pitch_scale + (thrust - thrust_reduction) + boost)) / _rotors[i].yaw_scale;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment