mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 08:15: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;
|
} logicConditionFlags_e;
|
||||||
|
|
||||||
typedef struct logicOperand_s {
|
typedef struct logicOperand_s {
|
||||||
logicOperandType_e type;
|
|
||||||
int32_t value;
|
int32_t value;
|
||||||
|
logicOperandType_e type;
|
||||||
} logicOperand_t;
|
} logicOperand_t;
|
||||||
|
|
||||||
typedef struct logicCondition_s {
|
typedef struct logicCondition_s {
|
||||||
|
logicOperand_t operandA;
|
||||||
|
logicOperand_t operandB;
|
||||||
uint8_t enabled;
|
uint8_t enabled;
|
||||||
int8_t activatorId;
|
int8_t activatorId;
|
||||||
logicOperation_e operation;
|
logicOperation_e operation;
|
||||||
logicOperand_t operandA;
|
|
||||||
logicOperand_t operandB;
|
|
||||||
uint8_t flags;
|
uint8_t flags;
|
||||||
} logicCondition_t;
|
} logicCondition_t;
|
||||||
|
|
||||||
|
@ -189,15 +189,15 @@ typedef struct logicConditionState_s {
|
||||||
} logicConditionState_t;
|
} logicConditionState_t;
|
||||||
|
|
||||||
typedef struct rcChannelOverride_s {
|
typedef struct rcChannelOverride_s {
|
||||||
uint8_t active;
|
|
||||||
int value;
|
int value;
|
||||||
|
uint8_t active;
|
||||||
} rcChannelOverride_t;
|
} rcChannelOverride_t;
|
||||||
|
|
||||||
typedef struct flightAxisOverride_s {
|
typedef struct flightAxisOverride_s {
|
||||||
uint8_t rateTargetActive;
|
|
||||||
uint8_t angleTargetActive;
|
|
||||||
int angleTarget;
|
int angleTarget;
|
||||||
int rateTarget;
|
int rateTarget;
|
||||||
|
uint8_t rateTargetActive;
|
||||||
|
uint8_t angleTargetActive;
|
||||||
} flightAxisOverride_t;
|
} flightAxisOverride_t;
|
||||||
|
|
||||||
extern int logicConditionValuesByType[LOGIC_CONDITION_LAST];
|
extern int logicConditionValuesByType[LOGIC_CONDITION_LAST];
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
#define MAX_PROGRAMMING_PID_COUNT 4
|
#define MAX_PROGRAMMING_PID_COUNT 4
|
||||||
|
|
||||||
typedef struct programmingPid_s {
|
typedef struct programmingPid_s {
|
||||||
uint8_t enabled;
|
|
||||||
logicOperand_t setpoint;
|
logicOperand_t setpoint;
|
||||||
logicOperand_t measurement;
|
logicOperand_t measurement;
|
||||||
pid8_t gains;
|
pid8_t gains;
|
||||||
|
uint8_t enabled;
|
||||||
} programmingPid_t;
|
} programmingPid_t;
|
||||||
|
|
||||||
PG_DECLARE_ARRAY(programmingPid_t, MAX_PROGRAMMING_PID_COUNT, programmingPids);
|
PG_DECLARE_ARRAY(programmingPid_t, MAX_PROGRAMMING_PID_COUNT, programmingPids);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue