mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Moved pidControllers out of mw.c into flight_common.c/h. Moved appropriate code into rc_controls.c/h.
21 lines
463 B
C
21 lines
463 B
C
#pragma once
|
|
|
|
// Type of accelerometer used/detected
|
|
typedef enum AccelSensors {
|
|
ACC_DEFAULT = 0,
|
|
ACC_ADXL345 = 1,
|
|
ACC_MPU6050 = 2,
|
|
ACC_MMA8452 = 3,
|
|
ACC_BMA280 = 4,
|
|
ACC_NONE = 5
|
|
} AccelSensors;
|
|
|
|
extern uint8_t accHardware;
|
|
extern sensor_align_e accAlign;
|
|
extern acc_t acc;
|
|
extern uint16_t calibratingA;
|
|
|
|
void ACC_SetCalibrationCycles(uint16_t calibrationCyclesRequired);
|
|
void ACC_Common(void);
|
|
void ACC_getADC(void);
|
|
|