mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
fixed acczero offsets to 0 on initial eeprom cleanup
added fifo mode to adxl345 driver, currently disabled. work in progress. fixed output for PWM 5-8 when used with PPM + camstab + abovequad configs. fixed baro, now alt-hold actually works. silly copypaste typo. trashed all remaining parts of power meter and lcd configuration stuff. useless. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@145 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
9e5504acd8
commit
cb334ecf47
13 changed files with 2849 additions and 3020 deletions
|
@ -21,8 +21,14 @@ sensor_t gyro; // gyro access functions
|
|||
|
||||
void sensorsAutodetect(void)
|
||||
{
|
||||
drv_adxl345_config_t acc_params;
|
||||
|
||||
// configure parameters for ADXL345 driver
|
||||
acc_params.useFifo = false;
|
||||
acc_params.dataRate = 800; // unused currently
|
||||
|
||||
// Detect what's available
|
||||
if (!adxl345Detect(&acc))
|
||||
if (!adxl345Detect(&acc_params, &acc))
|
||||
sensorsClear(SENSOR_ACC);
|
||||
if (!bmp085Init())
|
||||
sensorsClear(SENSOR_BARO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue