mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
of determining a revision code. Previously there was mpu6050 specific code in cli.c (the status command). Finally this commit has removed all non-serial port configuration settings from core_t so that a future commit can refactor core_t to reduce dependencies on serial port code. In doing this I also noted from other source code that the MPU6050 accelerometer trim for some revisions appeared to be incorrectly set to 255 * 8 instead of 256 * 8.
18 lines
334 B
C
18 lines
334 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_t acc;
|
|
|
|
void ACC_Common(void);
|
|
void ACC_getADC(void);
|
|
|