1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

OP-984 txpid not using the selected pid bank

This commit is contained in:
Les Newell 2013-12-12 12:11:00 +00:00
parent 0afe6afd11
commit faa1b61bf6

View File

@ -168,7 +168,7 @@ static void updatePIDs(UAVObjEvent *ev)
}
StabilizationBankData bank;
switch(inst.UpdateMode)
switch(inst.BankNumber)
{
case 0:
StabilizationSettingsBank1Get((StabilizationSettingsBank1Data *) &bank);
@ -317,7 +317,7 @@ static void updatePIDs(UAVObjEvent *ev)
StabilizationSettingsSet(&stab);
}
if (needsUpdateBank) {
switch(inst.UpdateMode)
switch(inst.BankNumber)
{
case 0:
StabilizationSettingsBank1Set((StabilizationSettingsBank1Data *) &bank);