Skip to content

Commit

Permalink
Fix assymetric issue acro plus
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbstyle committed Jan 20, 2016
1 parent ac2ed9f commit eac5a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/flight/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void airModePlus(airModePlus_t *axisState, int axis, pidProfile_t *pidProfile) {

/* acro plus factor handling */
if (axis != YAW && pidProfile->airModeInsaneAcrobilityFactor && (!flightModeFlags)) {
axisState->wowFactor = rcCommandReflection * ((float)pidProfile->airModeInsaneAcrobilityFactor / 100.0f); //0-1f
axisState->wowFactor = ABS(rcCommandReflection) * ((float)pidProfile->airModeInsaneAcrobilityFactor / 100.0f); //0-1f
axisState->factor = axisState->wowFactor * rcCommandReflection * 1000;
axisState->wowFactor = 1.0f - axisState->wowFactor;
}
Expand Down

0 comments on commit eac5a96

Please sign in to comment.