Commit Graph

52 Commits

Author SHA1 Message Date
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
Dominic Clifton 8661849a5f Ensure sensors bitmask contains the flag for the GYRO after gyro has
been detected.
2014-11-12 21:03:40 +00:00
Pierre-A d545ab545f Remove profanity from comments (issue #43) 2014-11-02 14:53:57 +01:00
Dominic Clifton 3d7455d557 Fixed magAlign, reconfigureAlignment was being called before mag
detection.  Closes #101.
2014-10-28 16:09:44 +00:00
Dominic Clifton 38dbe897d9 Reduce RAM usage of mpu6050 initialisation. 2014-10-16 01:10:23 +01:00
Dominic Clifton f5895b762f NAZE32_SP - Enable MPU6500 driver. 2014-10-16 00:57:44 +01:00
Dominic Clifton 8f9a553a9e Use Naze hardware revision when initialising mma845. Cleanup ADXL345
initialisation.
2014-10-16 00:56:02 +01:00
Dominic Clifton 2ed09b0b2f Use Naze hardware revision when initialising bmp085. Cleanup bmp085
GPIO configuration for all targets.
2014-10-16 00:13:09 +01:00
Dominic Clifton 79917da85a Use Naze hardware revision when initialising mpu6050. The driver is not
not naze specific anymore.
2014-10-15 23:10:18 +01:00
Dominic Clifton 6162f609ea Use Naze hardware revision when initialising adxl345 - this now allows
the driver to be used by any target with an hse_value of 12Mhz.
2014-10-15 21:16:52 +01:00
Dominic Clifton da51b5c479 Add MPU6500 SPI driver. Move sensor initialisation defines into target
specific headers.
2014-10-14 00:22:54 +01:00
Dominic Clifton 3eb8bcb3e5 Merge branch 'feature-sonar-flight-mode-no-baro' of dclifton-github.com:nebbian/cleanflight into nebbian-feature-sonar-flight-mode-no-baro
Fixed tabs, kept old references to VARIO.  Made SONAR mode a new option so that aux settings could be preserved.

Conflicts:
	src/main/config/runtime_config.h
	src/main/flight/altitudehold.h
	src/main/flight/imu.c
	src/main/io/rc_controls.h
	src/main/mw.c
	src/main/sensors/initialisation.c
2014-09-26 13:36:19 +01:00
Dominic Clifton 6013d9dc6a Decouple ms5611 baro driver from bmp085 driver. 2014-09-26 02:09:40 +01:00
Dominic Clifton 35280abfed Allow disabling of I2C for targets that do not use it. 2014-09-26 01:32:57 +01:00
Dominic Clifton 4237370b60 Saving files before refreshing line endings 2014-09-15 23:38:51 +01:00
Dominic Clifton 876cf6bdd7 Merge branch 'master' into oled-ssd1306
Conflicts:
	src/main/common/printf.c
	src/main/main.c
	src/main/sensors/initialisation.c
	src/main/target/NAZE/target.h
2014-09-15 23:36:17 +01:00
Dominic Clifton 6ce5736990 Update LED strip code to allow configurable LED strips.
See documentation for details.
2014-09-15 03:15:11 +01:00
Dominic Clifton e3ea15f3dc Fix various minor IDE warnings. 2014-09-14 16:33:32 +01:00
Dominic Clifton f29168a998 Working OLED in test mode. 2014-09-12 21:56:33 +01:00
Dominic Clifton 05be7c922c Fallback to FakeGyro and FakeAcc (when enabled) after first searching
for other devices.

This helps when porting to new targets.
2014-09-05 20:51:39 +01:00
Ben Hitchcock 66fce423bb Code allowing the use of sonar without requiring a barometer.
This code has been flight tested on a Naze32 acro, with no barometer onboard.  It also works when the target doesn't have BARO defined.
2014-09-05 11:28:55 +08:00
Dominic Clifton 3d382ea4c7 EUSTM32F103RC - First cut of support for this High-Density STM32F103
series development board.

These boards can be picked up for less than $11, coupled with a 10DOF
sensor board they make a great development platform or cheap expandable
FC.

Pretty much all pins are available to be used, unlike on the less
capable and more expensive OLIMEXINO.
2014-09-03 01:38:27 +01:00
Dominic Clifton 95852d0bdf CC3D - Change the default alignment of the board to match the default
open pilot alignment.

This makes it easier for new users to adopt cleanflight without having
to look up the alignment cli settings or rotate their boards in their
existing aircraft.

See discussion here:

http://forums.openpilot.org/topic/43569-baseflightcleanflight-ported-to-cc3d/?p=360886
2014-08-13 17:53:05 +01:00
Dominic Clifton 8f473f9b20 Initial support for CJMCU target (work-in-progress, compiles but doesn't link yet) 2014-07-31 14:01:01 +01:00
Dominic Clifton 440e942af4 STM32F3DISCOVERY - Fix build, MPU6000 not supported on this target yet. 2014-07-22 21:26:02 +01:00
Dominic Clifton 5f16cfb72a CC3D - Support MPU6000 Gyro/Acc and SPI 1/2. 2014-07-17 22:12:21 +01:00
Dominic Clifton 1fb75890d5 Initial OpenPilot CC3D commit. 2014-07-16 01:06:09 +01:00
Dominic Clifton ad1b7dd216 Update Olimexo to support a 10DOF board.
Sensors on it are: MPU6050 HMC5883L BMP085.

BMP085 not connected to GPIO pins.
2014-06-08 12:57:30 +01:00
Dominic Clifton e867af8c4b Correct project name in GPL notices. 2014-06-05 00:47:47 +01:00
Dominic Clifton 0bbcd6570f Updated source files to include the GPL v3 notices. Include a copy of
the GPL v3.
2014-06-04 16:48:23 +01:00
Dominic Clifton 32622da0ab Continuation of extracting peripheral configuration into drivers. 2014-06-04 14:53:34 +01:00
Dominic Clifton 3f8a6c0e20 Add VCP driver (work in progress) 2014-06-02 01:54:25 +01:00