mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Split up imuUpdate for gyro and acc
This commit is contained in:
parent
81299e34de
commit
b3f0bd1402
3 changed files with 14 additions and 17 deletions
|
@ -66,12 +66,6 @@ typedef enum {
|
|||
ACCPROC_COPY
|
||||
} accProcessorState_e;
|
||||
|
||||
typedef enum {
|
||||
ONLY_GYRO = 0,
|
||||
ONLY_ACC,
|
||||
ACC_AND_GYRO
|
||||
} imuUpdateMode_e;
|
||||
|
||||
typedef struct accProcessor_s {
|
||||
accProcessorState_e state;
|
||||
} accProcessor_t;
|
||||
|
@ -92,4 +86,5 @@ float calculateAccZLowPassFilterRCTimeConstant(float accz_lpf_cutoff);
|
|||
int16_t imuCalculateHeading(t_fp_vector *vec);
|
||||
|
||||
void imuResetAccelerationSum(void);
|
||||
void imuUpdate(rollAndPitchTrims_t *accelerometerTrims, uint8_t imuUpdateSensors);
|
||||
void imuUpdateGyro(void);
|
||||
void imuUpdateAcc(rollAndPitchTrims_t *accelerometerTrims);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue