Commit Graph

468 Commits

Author SHA1 Message Date
Hydra 067d3c0ac2 CF/BF - First cut of Current/Voltage/Battery cleanup.
many refactorings, bugs squished, concerns separated,
single-responsibility violations fixed and performance optimizations.
2017-03-19 10:40:03 +00:00
Michael Keller 9b19e99e56 Merge pull request #2539 from mikeller/make_target_mk_consistent
Make target.mk consistent.
2017-03-16 13:21:38 +13:00
Magnus Ivarsson b13d4694bb Combine ibus serial rx and ibus telemetry on the same fc uart on a single pin.
```
+---------+
| FS-iA6B |
|         |
| Ser RX  |---|<---\       +------------+
|         |        |       | FC         |
| Sensor  |---[R]--*-------| Uart TX    |
+---------+                +------------+
```
R = 10Kohm, Diode 1N4148 or similar.

Both uart tx and rx channels are used so it's not possible to use the spare pin for rx of something else.

Configure the serial port like this to get both serial rx and ibus telemetry on the same port:
```
serial 1 4160 115200 57600 115200 115200
```

It is still possible to run the serial rx and ibus telemetry on two uarts like before, an example:
```
serial 1 64 115200 57600 0 115200
serial 2 4096 115200 57600 115200 115200
```
2017-03-13 21:43:37 +01:00
Martin Budden f1ce19167f Converted target config.c files to PG - PG CLI 6 (#2578)
Converted CLI and target config.c files to PGs
2017-03-08 23:26:37 +00:00
Michael Keller 243bbac466 Amended to reflect outcome of discussion. 2017-03-07 15:40:14 +13:00
Martin Budden b8d6fb29df Fixed warnings in ARM math library 2017-03-06 06:11:49 +00:00
J Blackman 792941606f Initial preparation for cleaning up multiple files per MCU (#2500)
* Initial preparation for cleaning up multiple files per MCU

* Combined DSHOT for F3 and F4 (F7 todo)

* Build fixes (mixed some adjustments needed in transponder_ir.c)

* Fix F7 warnings/bugs

* Updated timer periods for transponder.

Fixed FURY including old pwm_output files.

* Added method to calculate prescaler and period on the fly for varying clock speeds.

This can be used for overclocking :)

* Consolidated led_strip

* Moved led strip to use system clock for timing (allowing overclocking)

* Fixed incorrect channel, and removed comparison warning.

* More cleanup

* Fix KIWIF4 target

* Cleaned up target.mk files
2017-03-01 19:50:23 +00:00
Martin Budden 6b27f10c94 Added PG config definitions 6 2017-02-27 06:27:01 +00:00
Martin Budden b8317f53c6 Merge pull request #2494 from blckmn/bb_enum_dedupe
Removing duplicate bb device enum
2017-02-26 14:48:27 +00:00
mikeller ca67cf1990 Added USB disconnect pulse for F4 / F7. 2017-02-26 13:19:42 +00:00
blckmn 1425241d61 Removing duplicate bb device enum
Changing SDCARD condition to that suggested by @mikeller
Changed make sample to make official
2017-02-26 20:59:42 +11:00
Martin Budden ea2ec8b069 Added hooks for gyro data analysis 2017-02-23 15:52:26 +00:00
Martin Budden 2828e26693 Fix makefile 2017-02-22 21:09:56 +00:00
Martin Budden 9277a39dcf Preliminary F446 support 2017-02-22 15:37:48 +00:00
borisbstyle de3d1d527d Merge branch 'master' into patch_v3.1.6 2017-02-20 14:40:43 +01:00
Anders Hoglund 90edb93238 Makefile cleanup. Remove the concept of HIGHEND and the HIGHEND_SRC list. 2017-02-13 17:48:53 +01:00
jflyper 4bdbed9b8b Moved USE_SOFTSERIALx to target.h 2017-02-11 22:14:41 +09:00
Martin Budden f2e5c7d0b4 Split RC adjustments into separate module 2017-02-03 10:49:27 +00:00
borisbstyle 51b19855dd Merge tag 'v3.1.2' 2017-02-02 00:23:33 +01:00
borisbstyle 58bcb981ed Decouple min_check from throttle // Add modern expo calculation to throttle curve 2017-02-01 23:53:29 +01:00
Martin Budden ae9fc8a58d Changed back to using -Ofast optimisation 2017-01-31 14:20:38 +01:00
Martin Budden 7521cd0fcb Reviewed and revised compiler speed optimisations 2017-01-31 14:20:36 +01:00
Martin Budden ca11e3de8e Moved gps_conversion to common/ directory 2017-01-31 14:20:33 +01:00
Martin Budden 974037c150 Parameter groups EEPROM migration 2017-01-31 14:20:23 +01:00
Martin Budden c190c55ce3 Changed back to using -Ofast optimisation 2017-01-31 14:20:20 +01:00
Martin Budden 34fcf7666a Reviewed and revised compiler speed optimisations 2017-01-31 14:20:18 +01:00
borisbstyle a112c1d7d0 Separate fc_core.c from RC processing 2017-01-30 23:46:04 +01:00
Michael Jakob d6f3a50a9b Cleanup F7 CMSIS and HAL Library compiler warnings 2017-01-19 08:58:27 +01:00
jflyper f565138101 Touch-ups 2017-01-16 22:59:33 +09:00
jflyper 1d8018f547 Rebase + touch-up
Includes fix for SmartAudio CMS behavior
2017-01-16 22:32:59 +09:00
borisbstyle b60bc0a2e1 Merge pull request #2106 from raphaelcoeffic/tramp-raf
IRC Tramp VTX support (continued)
2017-01-16 13:25:07 +01:00
Raphael Coeffic dddd09ae87 tramp: moved common definitions to vtx_common 2017-01-15 11:59:44 +01:00
jflyper cdd0cd4528 VTX abstraction (experimental) 2017-01-15 01:27:02 +09:00
Vlad Adamenko afef3b09b0 Making production target rg_SSD_F3
Clean ups on mikeller and martinbudden requests.
Plus, added default VBat scale configuration.
2017-01-13 18:16:39 -05:00
jflyper 6550d738db Some enhancements 2017-01-13 15:59:36 +01:00
jflyper 6515ae3490 Added power and pit mode 2017-01-13 15:59:36 +01:00
jflyper 58ed2ed590 Tramp prototype driver 2017-01-13 15:59:36 +01:00
mikeller 5e45ec3293 Renamed 'serial_cli' and 'fc_main'. 2017-01-11 23:22:03 +13:00
blckmn 1e75f90c52 Merge branch 'master' into task_dispatch 2017-01-10 09:39:59 +11:00
Martin Budden 0169e94353 Merge pull request #1955 from blckmn/ibus_telemetry
Adding ibus telemetry.
2017-01-07 21:57:08 +00:00
Martin Budden aa9fbe5712 Merge pull request #1988 from blckmn/nero
NERO - full target implementation and build
2017-01-07 11:54:05 +00:00
blckmn 06775e5c51 Adding ibus telemetry. 2017-01-07 09:15:52 +11:00
blckmn c9dac34cac Added simple dispatcher task for executing func after specified period. 2017-01-05 20:58:56 +11:00
Martin Budden 79f0a7088a Moved serial_cli to fc directory 2017-01-04 11:13:40 +00:00
blckmn f67bf14b32 First NERO build
Using sample 722 support based on available documentation (pending update from STM)
2017-01-04 16:16:15 +11:00
Martin Budden e8345369bb Moved init() and hardfault handling out of main into fc directory 2017-01-03 09:10:34 +00:00
jflyper 0b981ecfb1 Merge remote-tracking branch 'betaflight/master' into bfdev-smartaudio 2016-12-31 23:30:47 +09:00
borisbstyle 4e3704374a Cleanup mw.c // Remove unnecessary functions 2016-12-30 14:00:10 +01:00
blckmn 14efffcaf7 Clean up use of startup files in Makefile so as to specify different files for different MCUs 2016-12-30 21:17:56 +11:00
Michael Keller 6aec4e1ec5 Merge pull request #1918 from mikeller/remove_local_mk
Removed 'local.mk' from repo so that it will be properly ignored.
2016-12-30 13:51:43 +13:00