1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00
Commit graph

68 commits

Author SHA1 Message Date
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01: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
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
1f9cd807e3 Merge pull request #2485 from blckmn/i2c_multipleinstance
Utilised same i2c init as SPI
2017-02-26 06:27:53 +00:00
Martin Budden
ecd51bec62 Merge pull request #2481 from blckmn/bb_fix
BlackBox - initialise  SDCARD or FLASH if selected (not both)
2017-02-26 06:26:31 +00:00
blckmn
ee9c29c640 Utilised same i2c init as SPI 2017-02-26 07:56:06 +11:00
blckmn
4b799ada5e Protection to ensure only one or the other is initialised in regards to blackbox (for BlueJayF4) 2017-02-25 16:24:01 +11:00
Martin Budden
a897f5e23b Added transponder config 2017-02-24 22:42:00 +00:00
Martin Budden
3b954244c5 Merge pull request #2470 from martinbudden/bf_max7456_defines
Fix max7456 defines
2017-02-23 05:46:50 +00:00
Martin Budden
faf1ecf0e2 Moved free standing items out of masterConfig into separate configs 2017-02-22 18:44:40 +00:00
Martin Budden
694875d0aa Fix max7456 defines 2017-02-22 14:06:46 +00:00
Martin Budden
0bca49d8c4 Added PG config definitions 1 2017-02-22 09:43:05 +00:00
borisbstyle
de3d1d527d Merge branch 'master' into patch_v3.1.6 2017-02-20 14:40:43 +01:00
Martin Budden
c67d6eb4f1 Preparation for conversion to parameter groups 14 2017-02-19 20:33:45 +00:00
Martin Budden
3275105127 Preparation for conversion to parameter groups 13 2017-02-19 17:46:46 +00:00
Martin Budden
2c667376fa Preparation for conversion to parameter groups 12 2017-02-19 11:41:49 +00:00
Martin Budden
781b1b1352 Removed dependency of pwm_output driver on mixers and servos 2017-02-19 08:59:37 +00:00
Martin Budden
90c8ed5e3e Preparation for conversion to parameter groups 10 2017-02-19 08:33:25 +00:00
Martin Budden
e8d0cd1eec Preparation for conversion to parameter groups 9 2017-02-19 08:11:23 +00:00
Martin Budden
df630f1cf4 Preparation for conversion to parameter groups 8 2017-02-16 21:54:16 +00:00
Martin Budden
d2ac5d84b1 Preparation for conversion to parameter groups 7 2017-02-16 21:28:29 +00:00
borisbstyle
adf9ea2dba Remove LOOPTIME_SUSPEND_TIME 2017-02-15 22:52:03 +01:00