mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Optimize memory for better alignment
This commit is contained in:
parent
bd7fd66d66
commit
27480b32d1
2 changed files with 7 additions and 7 deletions
|
@ -168,16 +168,16 @@ typedef enum {
|
|||
} logicConditionFlags_e;
|
||||
|
||||
typedef struct logicOperand_s {
|
||||
logicOperandType_e type;
|
||||
int32_t value;
|
||||
logicOperandType_e type;
|
||||
} logicOperand_t;
|
||||
|
||||
typedef struct logicCondition_s {
|
||||
logicOperand_t operandA;
|
||||
logicOperand_t operandB;
|
||||
uint8_t enabled;
|
||||
int8_t activatorId;
|
||||
logicOperation_e operation;
|
||||
logicOperand_t operandA;
|
||||
logicOperand_t operandB;
|
||||
uint8_t flags;
|
||||
} logicCondition_t;
|
||||
|
||||
|
@ -189,15 +189,15 @@ typedef struct logicConditionState_s {
|
|||
} logicConditionState_t;
|
||||
|
||||
typedef struct rcChannelOverride_s {
|
||||
uint8_t active;
|
||||
int value;
|
||||
uint8_t active;
|
||||
} rcChannelOverride_t;
|
||||
|
||||
typedef struct flightAxisOverride_s {
|
||||
uint8_t rateTargetActive;
|
||||
uint8_t angleTargetActive;
|
||||
int angleTarget;
|
||||
int rateTarget;
|
||||
uint8_t rateTargetActive;
|
||||
uint8_t angleTargetActive;
|
||||
} flightAxisOverride_t;
|
||||
|
||||
extern int logicConditionValuesByType[LOGIC_CONDITION_LAST];
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
#define MAX_PROGRAMMING_PID_COUNT 4
|
||||
|
||||
typedef struct programmingPid_s {
|
||||
uint8_t enabled;
|
||||
logicOperand_t setpoint;
|
||||
logicOperand_t measurement;
|
||||
pid8_t gains;
|
||||
uint8_t enabled;
|
||||
} programmingPid_t;
|
||||
|
||||
PG_DECLARE_ARRAY(programmingPid_t, MAX_PROGRAMMING_PID_COUNT, programmingPids);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue