mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Added runtime setting of gyro SPI pin
This commit is contained in:
parent
1281d30eba
commit
60c2b812d1
24 changed files with 360 additions and 292 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "config/parameter_group.h"
|
||||
#include "common/axis.h"
|
||||
#include "drivers/io_types.h"
|
||||
#include "drivers/sensor.h"
|
||||
|
||||
typedef enum {
|
||||
|
@ -54,6 +55,7 @@ typedef struct gyroConfig_s {
|
|||
uint8_t gyro_soft_lpf_hz;
|
||||
bool gyro_isr_update;
|
||||
bool gyro_use_32khz;
|
||||
uint8_t gyro_to_use;
|
||||
uint16_t gyro_soft_notch_hz_1;
|
||||
uint16_t gyro_soft_notch_cutoff_1;
|
||||
uint16_t gyro_soft_notch_hz_2;
|
||||
|
@ -65,6 +67,7 @@ PG_DECLARE(gyroConfig_t, gyroConfig);
|
|||
bool gyroInit(void);
|
||||
void gyroInitFilters(void);
|
||||
void gyroUpdate(void);
|
||||
const busDevice_t *gyroSensorBus(void);
|
||||
struct mpuConfiguration_s;
|
||||
const struct mpuConfiguration_s *gyroMpuConfiguration(void);
|
||||
struct mpuDetectionResult_s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue