1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 11:29:56 +03:00

mixer and pid profile linking

This commit is contained in:
shota 2023-06-30 04:01:01 +09:00
parent 3ad0991125
commit 203bb2a471
14 changed files with 87 additions and 69 deletions

View file

@ -425,7 +425,7 @@ static int logicConditionCompute(
pidInit();
pidInitFilters();
schedulePidGainsUpdate();
navigationUsePIDs();
navigationUsePIDs(); //set navigation pid gains
profileChanged = true;
}
return profileChanged;
@ -434,16 +434,6 @@ static int logicConditionCompute(
}
break;
case LOGIC_CONDITION_SET_MIXER_PROFILE:
operandA--;
if ( getConfigMixerProfile() != operandA && (operandA >= 0 && operandA < MAX_MIXER_PROFILE_COUNT)) {
bool mixerprofileChanged = OutputProfileHotSwitch(operandA);
return mixerprofileChanged;
} else {
return false;
}
break;
case LOGIC_CONDITION_LOITER_OVERRIDE:
logicConditionValuesByType[LOGIC_CONDITION_LOITER_OVERRIDE] = constrain(operandA, 0, 100000);
LOGIC_CONDITION_GLOBAL_FLAG_ENABLE(LOGIC_CONDITION_GLOBAL_FLAG_OVERRIDE_LOITER_RADIUS);