Use defines for MAG_MAX and ACC_MAX

This commit is contained in:
Nicholas Sherlock 2015-03-07 01:57:45 +13:00
parent 8a541a9fa2
commit 0c8adf25c2
2 changed files with 6 additions and 6 deletions

View File

@ -29,10 +29,10 @@ typedef enum {
ACC_SPI_MPU6000 = 7,
ACC_SPI_MPU6500 = 8,
ACC_FAKE = 9,
ACC_MAX = ACC_FAKE
} accelerationSensor_e;
#define ACC_MAX ACC_FAKE
extern sensor_align_e accAlign;
extern acc_t acc;
extern uint16_t acc_1G;

View File

@ -17,16 +17,16 @@
#pragma once
// Type of accelerometer used/detected
// Type of magnetometer used/detected
typedef enum {
MAG_DEFAULT = 0,
MAG_NONE = 1,
MAG_HMC5883 = 2,
MAG_AK8975 = 3,
MAG_MAX = MAG_AK8975
MAG_AK8975 = 3
} magSensor_e;
#define MAG_MAX MAG_AK8975
#ifdef MAG
void compassInit(void);
void updateCompass(flightDynamicsTrims_t *magZero);