mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-14 11:59:56 +03:00
Move PID gains to UINT16 instead of UINT8. Keep it compatible on the MSP level
This commit is contained in:
parent
ebf581c871
commit
d32fe6dea5
12 changed files with 122 additions and 65 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "programming/logic_condition.h"
|
||||
#include "programming/global_variables.h"
|
||||
#include "programming/pid.h"
|
||||
#include "common/utils.h"
|
||||
#include "rx/rx.h"
|
||||
#include "common/maths.h"
|
||||
|
@ -595,6 +596,12 @@ int logicConditionGetOperandValue(logicOperandType_e type, int operand) {
|
|||
}
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_TYPE_PID:
|
||||
if (operand >= 0 && operand < MAX_PROGRAMMING_PID_COUNT) {
|
||||
retVal = programmingPidGetOutput(operand);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue