mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
added driver for MMA8452QT accelerometer
added mag_declination set option to cli - oops status in cli now prints which ACC hardware is used. work in proress to show difference between hardware with MPU6050 and MPU3050 git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@157 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
b929f79b54
commit
59ccf93dd3
8 changed files with 2746 additions and 2704 deletions
9
src/mw.h
9
src/mw.h
|
@ -53,6 +53,13 @@ typedef enum GimbalFlags {
|
|||
GIMBAL_DISABLEAUX34 = 1 << 2,
|
||||
} GimbalFlags;
|
||||
|
||||
// Type of accelerometer used
|
||||
typedef enum AccelSensors {
|
||||
ADXL345,
|
||||
MPU6050,
|
||||
MMA845x
|
||||
} AccelSensors;
|
||||
|
||||
/*********** RC alias *****************/
|
||||
#define ROLL 0
|
||||
#define PITCH 1
|
||||
|
@ -109,7 +116,7 @@ typedef struct config_t {
|
|||
uint8_t dynThrPID;
|
||||
int16_t accZero[3];
|
||||
int16_t magZero[3];
|
||||
int16_t magDeclination; // Get your magnetic decliniation from here : http://magnetic-declination.com/
|
||||
int16_t mag_declination; // Get your magnetic decliniation from here : http://magnetic-declination.com/
|
||||
int16_t accTrim[2];
|
||||
|
||||
// sensor-related stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue