mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Reenable the CC3D sensors
This commit is contained in:
parent
466992a907
commit
e9552065a9
@ -226,8 +226,8 @@ SRC += $(PIOSCOMMON)/pios_crc.c
|
||||
SRC += $(PIOSCOMMON)/pios_flashfs_objlist.c
|
||||
SRC += $(PIOSCOMMON)/pios_flash_w25x.c
|
||||
SRC += $(PIOSCOMMON)/pios_adxl345.c
|
||||
#SRC += $(PIOSCOMMON)/pios_l3gd20.c
|
||||
#SRC += $(PIOSCOMMON)/pios_bma180.c
|
||||
SRC += $(PIOSCOMMON)/pios_l3gd20.c
|
||||
SRC += $(PIOSCOMMON)/pios_bma180.c
|
||||
SRC += $(PIOSCOMMON)/pios_com.c
|
||||
#SRC += $(PIOSCOMMON)/pios_i2c_esc.c
|
||||
#SRC += $(PIOSCOMMON)/pios_bmp085.c
|
||||
|
@ -77,10 +77,8 @@
|
||||
|
||||
#define PIOS_INCLUDE_ADXL345
|
||||
#define PIOS_INCLUDE_FLASH
|
||||
/*
|
||||
#define PIOS_INCLUDE_BMA180
|
||||
#define PIOS_INCLUDE_L3GD20
|
||||
*/
|
||||
/*
|
||||
#define PIOS_INCLUDE_BMP085
|
||||
*/
|
||||
|
@ -392,7 +392,7 @@ static int32_t updateSensorsCC3D(AccelsData * accelsData, GyrosData * gyrosData)
|
||||
struct pios_l3gd20_data gyro;
|
||||
bool gyro_error = false;
|
||||
|
||||
while(gyro_read_good = PIOS_L3GD20_ReadFifo(&gyro)) != 0 && !gyro_error)
|
||||
while((gyro_read_good = PIOS_L3GD20_ReadFifo(&gyro) != 0) && !gyro_error)
|
||||
gyro_error = ((xTaskGetTickCount() - lastSysTime) > 5) ? true : gyro_error;
|
||||
while(gyro_read_good == 0) {
|
||||
gyro_samples++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user