Commit Graph

3104 Commits

Author SHA1 Message Date
Dominic Clifton ba2e22ab89 Add RMDO target. 2015-10-06 19:00:53 +01:00
Sean Vig 456396b25a Use fixed point calculation for BMP280 barometer
Substitute the floating point calculation for the comparably much faster
64-bit calculation recommended for a Cortex-M3 (floating point is
recommended only in PC applications with FPU) [1]. Even if we have an
FPU, we round the temperature to the nearest 1/100th of a degree and the
pressure to the nearest 1 Pa, both of which are within the limits of the
fixed-point algorithm's accuracy.

Conflicts:
	src/main/drivers/barometer_bmp280.c
2015-10-06 18:33:23 +01:00
Sean Vig e5f3f1794f Add tests for BMP280 barometer
Also get rid of the curved quotes for normal quotes (") and make
compensation computations static.
2015-10-06 18:25:59 +01:00
Dominic Clifton 0f87d1ff87 Merge pull request #1326 from cleanflight/nazerev6
Naze32 Revision 6 support
2015-10-06 18:23:35 +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
Dominic Clifton 06ceac0614 Remove unused variable warnings when no SPI sensors are used. 2015-10-02 15:43:44 +01:00
Dominic Clifton 6fb500f580 NAZE32 - Add support for BMP280. 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 9f95334347 Merge pull request #1365 from sorki/patch-1
Fix broken LedStrip.md link in docs
2015-10-02 12:27:58 +01:00
Richard Marko 8fb2cf6649 Fix broken LedStrip.md link in docs 2015-10-02 00:46:07 +02:00
Dominic Clifton d0b940bf75 Merge pull request #1221 from Echelon9/feature/make-help
Add new Makefile feature, try 'make help'
2015-09-30 15:29:03 +01:00
Dominic Clifton 52881b3dfd Merge pull request #1103 from borisbstyle/luxfloat_delta
Luxfloat Optimisation and new defaults
2015-09-29 10:48:23 +01:00
Dominic Clifton 5c6559dd5e Merge branch 'borisbstyle-rcFilter' 2015-09-29 10:45:54 +01:00
Dominic Clifton 36a3ee4e59 Merge branch 'rcFilter' of https://github.com/borisbstyle/cleanflight into borisbstyle-rcFilter 2015-09-29 10:36:41 +01:00
Echelon9 210d6bcd11 Add new Makefile feature, try 'make help' 2015-09-28 22:48:07 +10:00
Dominic Clifton 2c701bd58f Merge pull request #1212 from Echelon9/fix/imu-magic-number
imu: Replace MAGIC_NUMBER with proper array size reference.
2015-09-28 02:17:02 +01:00
Dominic Clifton ea35c735a3 Merge pull request #1230 from codepox/master
Bug Fix : Telemetry Smartport Current amperage is 10 times too big
2015-09-28 02:14:27 +01:00
Dominic Clifton a47b8f0d58 Merge pull request #1301 from Pierre-A/adcRssi-correction
Fix incorrect DMA index for RSSI and External (F1 proc)
2015-09-28 02:12:25 +01:00
Dominic Clifton bea4220e39 Merge pull request #1312 from Pierre-A/update_buzzer_md
Update buzzer.md with tone sequences
2015-09-28 02:09:34 +01:00
Dominic Clifton f175fbc495 Merge pull request #1338 from Smeat/patch-1
CC3D - Updating docs regarding disabled features with OPBL
2015-09-28 02:05:03 +01:00
Dominic Clifton 779702230f Fix mAhDrawn - one too many / 1000.
Without this commit the mAhDrawn was always 0, now at ~10A draw it ticks
up.

This needs to be verified, but seems to match behaviour of 1.9.x.

Fixes #1353
2015-09-28 01:44:53 +01:00
Dominic Clifton d1616b2795 Merge pull request #1351 from ProDrone/1345_IS_pid_change_during_boot
RX init issue, optimization.
2015-09-28 00:39:47 +01:00
Nicholas Sherlock 79aabff225 Add Blackbox internal log format specification 2015-09-27 20:03:52 +13:00
ProDrone cc22e76912 RX init issue, optimization.
RX initialization/startup issue resolved:

Rx fail fallback values were wrong during init phase.
Without a (powered) receiver connected they stayed there after init.
With a powered receiver they assumed the correct state after init
(causing possible switch events on startup).

Code optimizations:

Taking expression out of the loop.
Prevent double call to function.
Eliminate function call.
Reset rcSampleIndex on rxInit().
2015-09-26 16:29:33 +02:00
Dominic Clifton 21c0927efa Merge pull request #1343 from sherlockflight/msp-rx-loss-detect
Fix RX_MSP oscillation, > 8 channel support
2015-09-26 01:36:23 +01:00
Nicholas Sherlock 8e9669dc0c Fix RX_MSP writing to rcData was causing feedback loop with channel map
Fixes support for RX_MSP > 8 channels
2015-09-25 01:34:50 +12:00
Nicholas Sherlock 90ebf2a92d Fix RX_MSP never set rxSignalReceived to true, increase allowed delay 2015-09-25 01:24:27 +12:00
Kevin 524bc7a476 CC3D - Updating docs regarding disabled features with OPBL 2015-09-23 23:22:16 +02:00
Dominic Clifton 0d6d83925f Fix hmc5883 detection broken in c6f5b98a79 2015-09-19 14:30:27 +01:00
Dominic Clifton e0f4ddeccd Fix typo from c6f5b98a79. 2015-09-19 14:26:09 +01:00
Dominic Clifton 0d391eccc4 Remove some test code that was accidentally commited in
c6f5b98a79
2015-09-19 14:23:50 +01:00
Dominic Clifton a9c775b03d Delete unused FAILURE_MODE_COUNT value. 2015-09-18 20:33:17 +01:00
Pierre-A d0f66809a1 Update buzzer.md with tone sequences 2015-09-17 12:16:43 +02:00
Pierre-A 89b4b841e8 Update buzzer.md with tone sequences 2015-09-16 15:31:39 +02:00
Pierre-A 0ad8f8e6d3 correction of bug for adcRssi 2015-09-12 11:29:55 +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
Nicholas Sherlock 6c231e189b Reduce amount of wasted dataflash space upon power cycle
This wasted overhead becomes important when using the Blackbox "pause"
switch and logging very few of your flights.
2015-09-11 14:17:00 +12:00
Dominic Clifton 7fe674a57d Merge branch 'drtunes-issue_8_sensors_align' 2015-09-10 02:41:03 +01:00
Dominic Clifton 6706abdb2e Merge branch 'issue_8_sensors_align' of
https://github.com/drtunes/cleanflight into
drtunes-issue_8_sensors_align

Conflicts:
	src/test/Makefile
2015-09-10 02:38:58 +01:00
borisbstyle 786588756e Bump EEPROM 2015-09-10 02:22:51 +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
Dominic Clifton 6a24295525 Merge pull request #1241 from opsidao/patch-1
Update tests invocation in Development.md
2015-09-10 02:14:18 +01:00
Dominic Clifton c4680b3b3d More test code cleanup. 2015-09-10 02:06:15 +01:00
Dominic Clifton 0070573420 Fix unit tests - the tests cannot use a common library of production
since when compiling some test code the idea is to stub out production
functionality rather than call production code.
2015-09-10 02:06:14 +01:00