Commit graph

2712 commits

Author SHA1 Message Date
Petr Ledvina 7875b97aae Compile serial code conditionally on stm32f303 2015-02-23 09:17:06 +01:00
Petr Ledvina 7c62ec9755 Move internal serial interface into separate header file
Declaring function from other file is quite dangerous - there is no warning if interfaces get out of sync
2015-02-23 09:17:06 +01:00
Petr Ledvina 7c263254b2 improve loop readability 2015-02-23 09:17:06 +01:00
Petr Ledvina fd355caca6 Modify some macros so they evaluate to single statement
Require macros to be followed with semicolon, empty version expands to dummy statement.

Fixes dangling-else problem:

```
if(1)
        INVERTER_ON;
else
        INVERTER_OFF;
```
2015-02-23 09:17:06 +01:00
Petr Ledvina f9f40fb98f Handle possible problem with unintentional I2C interrupt handler triggering
Error handler may be called repeatedly during I2C unstucking. Not sure if this change is necessary, but it is safe
2015-02-23 09:17:06 +01:00
Petr Ledvina 5129403c83 minor I2C cleanup 2015-02-23 09:17:06 +01:00
Petr Ledvina d3324a9f0d Move ADC internal interface into new header file 2015-02-23 09:17:06 +01:00
Petr Ledvina 6b0fea5952 simplify #ifdefs 2015-02-23 09:17:06 +01:00
Petr Ledvina e56f46a756 Move utility macros to common/utils.h 2015-02-23 09:17:05 +01:00
Dominic Clifton b568b9c59d Update led strip documentation. 2015-02-22 22:20:27 +00:00
Dominic Clifton 0da270351a Merge pull request #537 from MJ666/Harakiri_PID_fix
Harakiri PID controller fix
2015-02-22 21:55:54 +00:00
Dominic Clifton a02cedd8d2 Fix blackbox compilation when included but not enabled. 2015-02-22 21:49:54 +00:00
Dominic Clifton 070b556a07 Enable blackbox flash logging only on SPRacingF3 and Naze rev5 targets. 2015-02-22 21:49:53 +00:00
Dominic Clifton 5d49451916 Cleanup SPI on STM32F3 targets. 2015-02-22 21:49:45 +00:00
Dominic Clifton 2f09b7d1d9 Merge branch 'blackbox-flash' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-flash 2015-02-22 17:24:39 +00:00
Pierre-A 39160a785a to solve the unreference compiling issue 2015-02-22 17:49:01 +01:00
Dominic Clifton 9057d70410 Allow excluding of servo code at compilation time.
This is in preparation for backbox on CJMCU/64k.

Flight tested on CJMCU.
2015-02-22 16:21:03 +00:00
Dominic Clifton 5a15c3b271 Merge branch 'master' into fusterjj-lowpass 2015-02-22 15:24:11 +00:00
Dominic Clifton df2f0e850f Bump version to 1.8.0 in preparation for new features. 2015-02-22 15:22:40 +00:00
Dominic Clifton f88bbf4676 Avoid usage of methods for targets that don't use the display. 2015-02-22 15:22:17 +00:00
Dominic Clifton f4112a67c6 Bump config version. 2015-02-22 15:21:45 +00:00
Dominic Clifton debd72485b Avoid updating servos to servo middle every loop iteration. 2015-02-22 15:21:21 +00:00
Dominic Clifton 774abcfab8 Update unit tests. 2015-02-22 14:56:15 +00:00
Dominic Clifton a1b01807cf Merge branch 'lowpass' of https://github.com/fusterjj/cleanflight into fusterjj-lowpass
Conflicts:
	src/main/flight/mixer.c
2015-02-22 14:55:04 +00:00
Dominic Clifton b4e4684ac7 Avoid resetting page cycle index when re-enabling page cycling so that
it is possible to stop on a page, inspect it, and then resume cycling at
the point that it was stopped.
2015-02-22 14:42:43 +00:00
Dominic Clifton 4a1b27443f Enable/Disable LCD page cycling using stick combos. 2015-02-22 14:01:38 +00:00
Pierre-A 83aa49a812 battery alarm sound for Hott telemetry binary mode 2015-02-22 09:47:22 +01:00
Nicholas Sherlock c6d71f148d Don't try to compile blackbox if BLACKBOX define isn't set
Just in case you link against blackbox.c but aren't using the BLACKBOX
define in target.h.
2015-02-22 12:01:14 +13:00
Michael Jakob a4e074816d Harakiri PID controller fix
integer constrain function is limiting accuracy in Angel and Horizon
mode ITerm value
2015-02-21 14:51:53 +01:00
tricopterY 145c761567 Update Safety.md
Added note to direct user to other important docs
2015-02-21 17:16:03 +11:00
tricopterY e43c4b90b9 Merge pull request #1 from cleanflight/master
latest
2015-02-21 16:04:48 +11:00
Nicholas Sherlock f6c9f7cc4a Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-21 12:52:26 +13:00
Dominic Clifton 523980fc7b Merge remote-tracking branch 'cleanflight/master' into serial-cleanup 2015-02-20 20:15:09 +00:00
Dominic Clifton f6408cd355 CJMCU disable cli servos command to save flash space.
At some point in the future it might be an idea to use a define for
USE_SERVOS so that more code could be excluded. (Servo tilt, etc).
2015-02-20 18:51:50 +00:00
Dominic Clifton 1a7fe33e16 Merge pull request #511 from MJ666/AlienWii
ALIENWII F3/F1 target cleanup and documentation update
2015-02-20 16:41:08 +00:00
Dominic Clifton 3194d331b1 Merge branch 'MaxWinterstein-patch-1' 2015-02-20 14:31:24 +00:00
Dominic Clifton 4aded2a0b9 Use same casing in Readme.md for 'Oneshot' as found elsewhere in the
documentation.
2015-02-20 14:31:09 +00:00
Dominic Clifton ae8be396d6 Correct markdown formatting on Oneshot.md. 2015-02-20 14:30:35 +00:00
Dominic Clifton da7a0a184c Merge branch 'patch-1' of https://github.com/MaxWinterstein/cleanflight into MaxWinterstein-patch-1 2015-02-20 14:27:46 +00:00
Dominic Clifton 79cc7cd97a Merge branch 'dave-pitman-dave-pitman-pid' 2015-02-20 14:20:34 +00:00
Dominic Clifton b4cc7c4cb4 Merge branch 'dave-pitman-pid' of https://github.com/dave-pitman/cleanflight into dave-pitman-dave-pitman-pid
Conflicts:
	docs/PID tuning.md
2015-02-20 14:20:24 +00:00
Dominic Clifton 4554feb5e7 Merge pull request #474 from Zappes/master
Update Spektrum bind.md
2015-02-20 13:48:32 +00:00
Dominic Clifton 81926974f4 Merge pull request #463 from dave-pitman/dave-pitman-rates
Add Rates & Expo documentation
2015-02-20 13:43:45 +00:00
Dominic Clifton 1fbc9087a0 Merge pull request #478 from JohnieBraaf/patch-1
Update Hardware Debugging.md
2015-02-20 13:42:33 +00:00
Dominic Clifton fdfb053897 Merge pull request #485 from ledvinap/doc-pid-internals
Doc pid internals
2015-02-20 13:41:51 +00:00
Dominic Clifton 97f71aed5f Merge pull request #507 from wiebel/patch-1
Some Linux secific remarks
2015-02-20 13:39:51 +00:00
Dominic Clifton 2a2b89f580 Merge pull request #519 from tracernz/safety-docs
Safety docs
2015-02-20 13:39:09 +00:00
Dominic Clifton 2df04ab403 Merge pull request #520 from tracernz/cli-docs
Document CLI variables
2015-02-20 13:36:29 +00:00
Dominic Clifton 4e72db6dad Merge pull request #508 from tracernz/vcm-doc
Clarify Virtual Current Meter docs
2015-02-20 13:22:22 +00:00
Dominic Clifton 5a079063c0 Merge pull request #517 from sherlockflight/servo-cli
Add "servo" CLI command to get/set servo conf, and include in dump
2015-02-20 13:21:07 +00:00