1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00
Commit graph

88 commits

Author SHA1 Message Date
Martin Budden
944adb06f8 Minor changes to directory structure to reflect changes in Cleanflight and betaflight 2016-08-09 08:19:15 +01:00
Martin Budden
19ab505e6a Removed #includes from header files and other betaflight catchups 2016-08-06 12:59:12 +01:00
Martin Budden
a0ba45f8b3 Converted tabs to spaces prior to IO merge from betaflight 2016-07-31 23:40:49 +01:00
Martin Budden
0489eb8b08 Converted I2C, EXTI and SONAR to new IO (#389)
* Converted I2C to new IO
* Converted SONAR to new IO
* Converted EXTI to new IO
* Whitespace and target.h cleanup
* Catch up with betaflight changes
* Got ALIENFLIGHTF1 and CC3D_NRF24_OPBL targets to fit in ROM
* Target fixup
* Fixed build errors in targets
* Fixed CC3D and NAZE targets.
2016-07-31 12:25:03 +03:00
Konstantin Sharlaimov
688e75c82d SPRACINGF3EVO board support (#266)
* Initial SPRACINGF3EVO support
* General SD-Card support; enable SD-Card for EVO
2016-07-27 05:46:32 +03:00
Konstantin (DigitalEntity) Sharlaimov
8429de5b8c Fix possible uninitialised variable usage 2016-07-25 07:39:56 +03:00
Konstantin Sharlaimov (DigitalEntity)
8aa69a7daf Fixed no-mag detection 2016-07-14 21:49:34 +10:00
André
49bfcd7bb8 Update initialisation.c (#348)
Changed behaviour of mag_detect when forced sensor is not present
New behaviour: continue with mag disabled
Closes #336
2016-07-13 20:21:48 +10:00
Konstantin Sharlaimov
852b83a921 FuryF3 Initial support (#313)
* FURYF3 initial support (rev. 1 - No SD-Card, but with SPIFLASH)

* FURYF3: Split into two targets - FURYF3 and FURYF3_SPIFLASH

* Fix non-inverted beeper for FURYF3_SPIFLASH version

* Migrate target to new IO
2016-07-09 22:53:53 +10:00
Konstantin Sharlaimov
1cafd0d9e7 SONAR: Don't enable SENSOR_SONAR if no sonar is detected (#303) 2016-06-21 08:17:35 +10:00
Martin Budden
533d272845 Sonar initialisation cleanup - part 3 2016-06-12 09:04:25 +01:00
Martin Budden
ea3f540030 Fixed compiler warnings. 2016-05-21 12:57:27 +01:00
Martin Budden
4c3c8a1b48 Moved sonar pinouts into target.h files. (#224) 2016-05-18 23:46:23 +10:00
Konstantin Sharlaimov (DigitalEntity)
cf46cf6098 ACC/GYRO: Cleanups. Thanks to @martinbudden for the idea and most of the code 2016-05-09 10:50:47 +10:00
Read Error
455a358591 Lux Commit 2016-03-15 21:33:39 +10:00
Konstantin (DigitalEntity) Sharlaimov
8f25007144 MAG: Support for Freescale MAG3110 compass chip 2016-03-09 21:21:59 +02:00
Konstantin Sharlaimov (DigitalEntity)
69cfbb04d2 GPS: Protocol-independent stack. UBLOX binary driver implementation. Autoconfig works. Autobaud works.
GPS: Native MAG support (for future NAZA GPS support), bugfixes

GPS: Supported GPS protocols on a per-target basis
2016-01-22 23:24:42 +10:00
Konstantin Sharlaimov (DigitalEntity)
dc3e84ea5b Merge branch 'master' into inav-dev
Conflicts:
	Makefile
	src/main/common/filter.c
	src/main/common/filter.h
	src/main/config/config.c
	src/main/config/config_master.h
	src/main/config/config_profile.h
	src/main/drivers/sonar_hcsr04.c
	src/main/flight/altitudehold.c
	src/main/flight/failsafe.c
	src/main/flight/failsafe.h
	src/main/flight/imu.c
	src/main/flight/imu.h
	src/main/flight/navigation.c
	src/main/flight/pid.c
	src/main/flight/pid.h
	src/main/io/rc_controls.c
	src/main/io/serial.c
	src/main/io/serial.h
	src/main/io/serial_cli.c
	src/main/mw.c
	src/main/sensors/sonar.c
	src/main/sensors/sonar.h
	src/main/target/NAZE/target.h
	src/main/telemetry/ltm.c
	src/test/Makefile
	src/test/unit/flight_imu_unittest.cc
	src/test/unit/navigation_unittest.cc
2015-12-23 14:19:33 +10:00
borisbstyle
10a96b0dfc Gyro Sync feature (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

MPU6500 INT_STATUS support // MPU3500 dummy handling

Enable full 1khz sampling on F1 boards (no acc mode)

Add MPU3050 INT_STATUS

F1 target decreased max refresh

Configurable optione (sync_gyro_to_loop)

correction watchdog

correct filter

Coding style and cleanup code

Cli.md

Bump EEPROM version

MPU6050 MPU DATA READY Pin instead of i2c

Add more targets and corrections

correction to CC3D

ident

MPU6500 correction

INT_ENABLE MPU6500

add interrupt mpu6500

MPU6500 corrections from rebase

MPU6500 correct

Final fix to compile // ready for testing and review

MPU6000 / MPU3050 Corrections

Add CC3D extiConfig

add mpu6500

Fix intStatus position

fix returns

Add COLIBRI_RACE MPU INT

Change CLI name to gyro_sync

This is shorter typing and speaks for itself

Fix MotoLab After rebase

Add motolab

Full gyro Sync rework

Idents etc

Doc update

more corrections

Fix serial_cli

refactor // ident

GPL

single line

runloop refactor
2015-12-18 15:11:35 +01:00
Konstantin Sharlaimov (DigitalEntity)
b8ea813a6c Fake baro, fake mag, fake GPS for debugging on the bench on acro board 2015-12-09 16:04:37 +10:00
Moto Moto
b7517aa599 Add MOTOLAB build target and associated source files 2015-10-19 20:35:28 -05:00
Dominic Clifton
9b054f6fde More cleanup of MPU driver code. Support MPU INT on CC3D and Naze32
Rev6.
2015-10-15 23:04:55 +01: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
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
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