mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Moved alignment from sensor into device
This commit is contained in:
parent
86158a046d
commit
60e2227396
19 changed files with 82 additions and 104 deletions
|
@ -37,7 +37,6 @@ typedef enum {
|
|||
|
||||
typedef struct acc_s {
|
||||
accDev_t dev;
|
||||
sensor_align_e accAlign;
|
||||
uint32_t accSamplingInterval;
|
||||
int32_t accSmooth[XYZ_AXIS_COUNT];
|
||||
} acc_t;
|
||||
|
@ -57,6 +56,7 @@ typedef union rollAndPitchTrims_u {
|
|||
|
||||
typedef struct accelerometerConfig_s {
|
||||
uint16_t acc_lpf_hz; // cutoff frequency for the low pass filter used on the acc z-axis for althold in Hz
|
||||
sensor_align_e acc_align; // acc alignment
|
||||
} accelerometerConfig_t;
|
||||
|
||||
void accInit(uint32_t gyroTargetLooptime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue