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:
parent
0afe6afd11
commit
faa1b61bf6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user