From faa1b61bf6613b55f4d6db36c382e27faac3f4a0 Mon Sep 17 00:00:00 2001 From: Les Newell Date: Thu, 12 Dec 2013 12:11:00 +0000 Subject: [PATCH] OP-984 txpid not using the selected pid bank --- flight/modules/TxPID/txpid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/modules/TxPID/txpid.c b/flight/modules/TxPID/txpid.c index 5a53565cc..117349e2d 100644 --- a/flight/modules/TxPID/txpid.c +++ b/flight/modules/TxPID/txpid.c @@ -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);