1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00
Commit graph

133 commits

Author SHA1 Message Date
borisbstyle
b39beceb62 8khz Sampling option / preparation 2015-11-24 16:09:16 +01:00
borisbstyle
eb138dc601 COLIBRI_RACE MPU_DATA_READY Handler
Colibri Race MPU INT support

revert some things

revert more

Update Colibri Race Binaries

Update target.h Colibri_race

Update Target.h
2015-10-16 12:41:49 +02:00
Dominic Clifton
4da387e93d More cleanup of MPU driver code. Support MPU INT on CC3D and Naze32
Rev6.

MPU6050 Correction From merge
2015-10-16 10:40:54 +02:00
borisbstyle
12c9f65f43 Merge branch 'master' into betaflight
Conflicts:
	Makefile
	docs/Cli.md
	src/main/config/config.c
	src/main/drivers/accgyro_mpu3050.c
	src/main/drivers/accgyro_mpu6050.c
	src/main/drivers/accgyro_mpu6050.h
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/accgyro_spi_mpu6000.h
	src/main/drivers/accgyro_spi_mpu6500.c
	src/main/drivers/accgyro_spi_mpu6500.h
	src/main/drivers/barometer_bmp280.c
	src/main/drivers/sensor.h
	src/main/flight/pid.c
	src/main/mw.c
	src/main/rx/rx.c
	src/main/sensors/initialisation.c
	src/main/target/CC3D/target.h
2015-10-07 17:12:54 +02:00
Dominic Clifton
07d985ba5c More MPU cleanups. 2015-10-02 15:43:44 +01:00
Dominic Clifton
aac13914f9 LPF setting is not needed to detect the gyro sensor, only when it's
initialised; now the lpf setting is passed to gyroInit().

This saves a bit of code size and ram as well as making the code
cleaner.
2015-10-02 15:43:44 +01:00
Richard Lehey
501c83f851 Add support for new BMP280 barometer 2015-10-02 15:43:44 +01:00
Dominic Clifton
85ba1eb0bd Add support for MPU6500 connected via I2C. 2015-10-02 15:43:44 +01:00
Dominic Clifton
678c0413cb Relocate and use some of the common MPU code from MPU6000 into
accgyro_mpu.c.
2015-10-02 15:43:44 +01:00
Dominic Clifton
0361d161fb Relocate and use some of the common MPU code from MPU6500 into
accgyro_mpu.c.
2015-10-02 15:43:44 +01:00
Dominic Clifton
da46d9f1d2 Relocate and use some of the common MPU code from MPU3050 into
accgyro_mpu.c.
2015-10-02 15:43:44 +01:00
Dominic Clifton
b46d56a5bd Relocate some of the common MPU code from MPU6050 into accgyro_mpu.c. 2015-10-02 15:43:44 +01:00
borisbstyle
0539abc649 Dterm scaling correction // Code cleanup 2015-09-21 00:19:06 +02:00
borisbstyle
0501e5ff91 Code Cleanup
More code cleanup and BUMP EEPROM

Code Cleanup

Fix loop trigger
2015-09-19 01:37:48 +02:00
borisbstyle
4cc0156f5b Merge branch 'henn1001-betaflight' into betaflight 2015-09-19 00:17:07 +02:00
hrrr
626fffb712 Sparky updates 2015-09-18 23:49:14 +02:00
henn1001
fe717dfcc6 Fixed IRQ to EXTI3_IRQHandler
Changed IRQ functionname - no handler needed
2015-09-18 18:46:54 +02:00
henn1001
99e94a818c Added MPU6000 interrupt, work in progress 2015-09-18 13:48:45 +02:00
borisbstyle
dae052632c Merge branch 'master' into betaflight
Conflicts:
	src/main/drivers/accgyro_mpu3050.c
	src/main/drivers/accgyro_mpu6050.c
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/accgyro_spi_mpu6500.c
	src/main/drivers/sensor.h
2015-09-15 23:36:40 +02:00
Dominic Clifton
c6f5b98a79 Improve failure LED status flashing. Now users can identify and report
hardware failures by counting the number of long flashes.

Fix up sensor read API so that code that uses sensors can detect
malfunctions.

If a failure mode occurs in a debug mode the code reboots the system
rather than rebooting to the bootloader.
2015-09-12 01:33:19 +01:00
borisbstyle
26f89b74bd Configurable Baro Type
We can disable/configure mag, acc, but why not baro?

ident
2015-09-10 02:22:50 +01:00
borisbstyle
a0ac565ff5 Merge remote-tracking branch 'motolab/motolab-integration' into betaflight 2015-09-05 15:11:38 +02:00
borisbstyle
5390cdc804 Selectable BARO (set baro_hardware)
Disabling baro will boost performance on FULL boards
2015-09-02 00:30:51 +02:00
borisbstyle
41895bc1af New Clli params RC Smoothing and sync_gyro_to_loop 2015-09-02 00:30:46 +02:00
borisbstyle
26deeb8ff6 Loop synced to Gyro
Remove double MPU_RA_PWR_MGMT_1

Looptime to Gyro refresh rate

disable 2khz when acc used for F3

Gyro sync code improvement

doc change
2015-09-02 00:30:39 +02:00
Richard Lehey
637fd64f36 Add support for new BMP280 barometer, modified files 2015-09-02 00:30:33 +02:00
Moto Moto
2e351b0991 Add MOTOLAB build target and associated source files 2015-08-23 19:42:18 -05:00
Larry (TBS)
3b1f423c49 COLIBRI RACE support 2015-08-20 19:18:10 +01:00
Mauro Mombelli
9277a8b7bf fixed a parameter error in unit test 2015-06-28 12:06:32 +01:00
Michael Hope
920cac5253 various: re-work designated initialisers to work with G++
G++ supports a more limited version of designated initialisers.
Reorder fields to be in the right order.  Make nested initialisers
explicit.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:34:27 +02:00
Michael Hope
5c6760fd82 various: tidy up various things found when building with a C++ compiler.
Remove duplicate consts.
Pull in the include files where functions and variables are declared.
Mark file local but duplicated variables as static.
Mark some variable declarations as extern.
Remove duplicated variable definition.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:32:31 +02:00
Steveis
6448b4b3d7 Replaced gyroData with gyroADC as they both contain the same value 2015-05-17 07:14:42 +01:00
Dominic Clifton
80beb9c8d8 SPRacingF3/Naze32 Rev 5 - Add support for MAG data ready EXTI handler. 2015-05-07 09:40:35 +01:00
Dominic Clifton
c11c25514b SPRACING32/NAZE32 - Add support for MPU6050 data ready interrupt.
Currently the interrupt handler is unused.  Later it can be used as a
potential source for watchdog checking or to syncronize the system
around new acc/gyro data availability.

Verified on Naze32 rev 3/4/5 and SPRacingF3 targets.
2015-04-11 19:18:11 +01:00
Dominic Clifton
6059089bb6 Fix disabling of acc and mag sensors.
Closes #623
2015-03-14 21:01:19 +01:00
Dominic Clifton
3e73b3de53 Add some const correctness to mag initialisation.
See #582.
2015-03-04 09:04:59 +00:00
Nicholas Sherlock
b6991b57a0 Fix invalid memory read during compass initialisation 2015-03-04 20:46:13 +13:00
Dominic Clifton
ed434dd169 Cleanup ACC hardware enum so that 'None' is always '1' and doesn't
change every time a new sensor is added.  All the sensor enum values are
now aligned.
2015-02-26 22:31:38 +00:00
Dominic Clifton
1de72b11ce Update the cli status command to show all detected sensors (Except on
CJMCU).

Further cleanup of sensor initialisation.
2015-02-19 21:08:30 +00:00
Dominic Clifton
c45efac812 Cleanup sensor detection. Less code required and a similar pattern is used for each type of sensor. 2015-02-19 16:15:14 +00:00
Konstantin Sharlaimov
77e5be5002 Fixed external barometer & magnetometer detection 2015-02-19 13:43:47 +00:00
Dominic Clifton
55cac2bdeb Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
Relocate more code.
2015-02-01 00:39:38 +01:00
Dominic Clifton
e58f2948f3 STM32F3DISCOVERY - Updating L3GD20 alignment defaults. (MJ666) 2015-01-22 19:39:36 +01:00
Dominic Clifton
650389afb6 Disable ADC initialisation on CJMCU. Replace MASSIVEF3 with SPRACINGF3.
Conditional VCP code inclusion.  Other minor F1/F3 cleanups.
2015-01-20 23:33:03 +01:00
Dominic Clifton
4a763ba638 STM32F3Discovery - Prefer MPU6050 ACC over onboard ACC. 2014-12-26 01:20:14 +00:00
Dominic Clifton
451ee4ab2b Move sensor alignment defaults into target.h files. 2014-12-26 01:19:58 +00:00
Dominic Clifton
36c0b6f106 Cleanup MPU9150 support. 2014-12-24 23:53:17 +00:00
Dominic Clifton
183c5f8e16 Add MPU9150 mag support and mag autodetection. Add AK8975 mag driver.
Note: not working on the sparky, MPU9150 needs passthough enabling but
when enabled the mag and gyro won't ack on the default addresses.  Needs
further investigation.
2014-12-21 23:40:48 +00:00
Dominic Clifton
fed6df275f Add MPU9150 driver.
This is a almost a complete clone of the 6050 - needs cleanup and
de-duplication.
2014-12-09 03:12:37 +00:00
Kyle Manna
c806046181 perms: Remove execute bit on source files
* Remove the execute bit on source files.
* No functional change.
2014-11-26 10:13:29 -06:00