1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

89 commits

Author SHA1 Message Date
jflyper
adee15a806 Allow gyro-less booting 2017-06-30 08:51:06 +09:00
mikeller
31df82db2d Reworked arming conditions. 2017-06-30 08:43:46 +12:00
Martin Budden
4b48e3ea28 Merge pull request #3365 from blckmn/dynamic_timer
Dynamic PWM output based on timer clock speed
2017-06-28 17:52:07 +01:00
blckmn
b9ebf8f4fd PWM output calculations dynamic based on clock speed 2017-06-28 21:59:42 +10:00
Dominic Clifton
545e30e3c4 Merge pull request #2872 from cleanflight/fix-servo-filtering
CF/BF - Fix servo filter initialisation.
2017-06-28 11:54:34 +12:00
jflyper
e88db3cb1a Merge branch 'master' into bfdev-configurable-bind-pin-2 2017-06-23 19:20:31 +09:00
Martin Budden
cca6d1ad6a Merge pull request #3321 from jflyper/bfdev-set-spi-cs-initial-high-2
Preset CS lines for SPI devices initial high
2017-06-23 10:36:16 +01:00
Dominic Clifton
32fa109a64 Merge pull request #2852 from azolyoung/add-runcam-split-support
Add runcam split support
2017-06-23 08:48:07 +12:00
jflyper
5845f96c1e RX_CE_PIN doesn't need to be initialized 2017-06-22 23:15:45 +09:00
jflyper
a2718a91cd Even more devices (RX_SPI and RX_NRF24) 2017-06-21 03:12:05 +09:00
jflyper
8a03089569 More SPI devices 2017-06-21 00:54:33 +09:00
jflyper
682d4d4014 Preset CS lines for SPI devices initial high 2017-06-20 21:10:31 +09:00
jflyper
4451ae5fe9 Exclude SITL case 2017-06-19 20:46:49 +09:00
jflyper
8e2ebcf026 Rebased on to master 2017-06-19 19:43:18 +09:00
blckmn
3cfcf8a4b3 Fix for SITL target 2017-06-19 06:35:40 +10:00
jflyper
3d2fe5e8de Enable spektrum bind for SRXL 2017-06-17 11:12:50 +09:00
jflyper
c7f62e47a6 Automatic spektrum bind pin determination 2017-06-17 04:12:50 +09:00
jflyper
52bfef1ea5 Configurable I2C (rework) 2017-06-16 01:20:32 +09:00
Michael Keller
671d453709 Merge pull request #3097 from jflyper/bfdev-uart-refactor-and-configurable
UART refactor and configurable
2017-06-05 08:35:29 +12:00
jflyper
2d45189fe2 No more "pin-pair"
RX and TX can be assigned to ANY capable pins.
2017-05-27 02:55:13 +09:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
jflyper
fdfe9e8af3 Configurable UART 2017-05-24 11:49:21 +09:00
Martin Budden
4be1e31d01 Further work on multiple gyro support 2017-05-08 07:02:45 +01:00
jflyper
4b80bceb1f Rebased on to master 2017-05-07 22:26:47 +09:00
jflyper
9461672b46 Make inverter resource configurable
Add XXX comment about inverterConfig size

Fixed non-USE_INVERTER case

Moved inverter pin to serialPinConfig_t

Various improvements

Per @ledvinap ’s comments.

Only include "drivers/serial.h" from inverter.h

SERIAL_PORT_UART{4,5}, not _USART{4,5}

Dah!

Avoid magic number

Prepare for SERIAL_PORT_IDENTIFIER_TO_INDEX change (#3015)
2017-05-05 02:34:50 +09:00
Martin Budden
d1302712f2 Tidied blackbox function names to have blackbox prefix 2017-04-28 10:00:59 +01:00
Hydra
723831b579 SPRACINGF3NEO - Use RTC6705 clk hack.
CF/BF - Fix typo in max7456DmaInProgress.  Always define an
implementation even when there is no TX-DMA.

CF/BF - Ensure that max7456 communication does not disrupt RTC6705
communication when using the same SPI port for both.

CF/BF - Port RTC6705 to use the VTX API.

* Support VTX channel/band/power on OSD for ALL vtx APIs - previously it only supported RTC6705.
* Remove all FEATURE_VTX usage.
* Remove all `#define VTX` usage.

Note that due to the async nature of tramp/smartaudio it's not possible
to know the current band/channel after requesting a change (as the
request hasn't been processed) so it makes no sense to try and save the
config - and on the tramp/smartaudio vtx the vtx maintains it's state.
So on an RTX6705 equipped FC the user should now MANUALLY save the
config using the save config stick position.

CF/BF - Move CMS for RTC6705 into vtx_rtc6705.c for consistency with
other VTX CMS menus.

CF/BF - Update RTC6705 via SOFT SPI to use VTX API.

* Achieved by simply aligning the API at the driver level and removing
all legacy conditional compilation checks.

CF/BF - Use new IO for RTC6705 CLK Hack

CF/BF - Port VTX button from CF v1.x.

Features:
* Channel Cycle
* Band Cycle
* Power Cycle
* Save Settings
* Works with any VTX using VTX API.

CF/BF - Allow support for Internal and External VTX - External takes
precedence when configured.

CF/BF - Fix display of VTX power in CMS.

* Issue occured when CMS was transitioned from integer to list of
strings.

CF/BF - Disable SMARTAUDIO and TRAMP on the SPRacingF3NEO due to flash
size.

CF/BF - Cleanup const usage of bass-by-value parameters.  Cleanup
naming.

CF/BF - Cleanup naming.  Removing noise-words. Improving consistency.

CF/BF - Improve readability by further naming cleanups.

CF/BF - Remove some magic numbers in the RTC6705 VTX code.

CF/BF - Use braces on some procedural macros.

CF/BF - Improve code readability by renaming rtc6705SetChannel to
rtc6705SetBandAndChannel.

CF/BF - Remove editor mishap.

CF/BF - Make the rtc6705Dev variable static.

CF/BF - remove duplicate state variablertc6705Dev_t - vtxDevice_t had
all we needed.  Use brackets on some procedural style macros.  Make all
the vtx vtable static const.

CF/BF - making some declarations const.

CF/BF - Fix vtx_power maximum value (out by one).
2017-04-21 11:49:31 +12:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Hydra
2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
Michael Keller
9204d0a34e Fixed conditionals for SPEKTRUM_BIND_PIN. 2017-04-10 09:55:40 +12:00
Hydra
ca5bafeab9 CF/BF - SPRACINGF3OSD initial target support inc support for OSD SLAVE via MSP_DISPLAYPORT.
OSD is tested and working on an SPRACINGF3EVO stacked with an SPRACINGF3OSD.
2017-04-09 14:17:17 +01:00
Martin Budden
149ed180f6 Merge pull request #2800 from jflyper/bfdef-cms-resurrect-display-cycling
[CMS] Resurrect display cycling
2017-04-03 20:52:30 +01:00
Miguel
a2841d783b Fix compile linking issues when USE_PWM is disabled 2017-04-02 20:01:41 +01:00
jflyper
cdf1bbb087 Rebased on to master 2017-04-02 22:46:33 +09:00
jflyper
5d92b62393 Resurrect multi-display cycling 2017-04-02 22:42:35 +09:00
jflyper
3df4a84c1c comment tidy 2017-04-02 11:04:52 +09:00
Anders Hoglund
dfb219038f Fix compile warning on unused osdDisplayPort- 2017-04-01 18:35:01 +02:00
jflyper
e186a2d709 Further fix CMS displayPort registration
1. Avoid OSD over MSP_DISPLAYPORT case (not ready yet).
2. osdInit to take care NULL displayPortToUse.
2017-04-02 01:26:49 +09:00
jflyper
d2fe67aa45 Fix (bad) CMS device registration order 2017-04-01 02:07:55 +09:00
blckmn
293dc08de9 Init flash regardless 2017-03-28 21:38:29 +11:00
blckmn
c0d18280d5 Removed feature SDCARD and BLACKBOX
Now uses blackboxConfig()->device instead. Requires co-ordination with configurator.
2017-03-28 21:29:50 +11:00
Hydra
5ab2117a69 CF/BF - Further isolate BST to the Colibri_Race target. Remove even
more unused code.

It was partly isolated before, but now it's even clearer that only this
target uses it.
2017-03-21 21:17:40 +00:00
Hydra
249c707beb CF/BF - rename adcConfig.currentMeter to adcConfig.current 2017-03-19 10:40:09 +00:00
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
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
Sergey Krukovski
ab8da465f0 Added GYRO/OSD order comment 2017-03-06 23:51:17 +01:00
Sergey Krukovski
1857c7de73 Initialise OSD after GYRO 2017-03-06 22:14:45 +01:00
Martin Budden
aa561d542b Updates to support parameter groups 2017-03-06 13:48:14 +00:00
Martin Budden
9b62a4e38f Added PG config definitions 10 2017-02-28 06:28:06 +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