1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
Commit graph

142 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
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
Dominic Clifton
a4ee4102d7 Cherry-pick CF/9f7f2f2 2017-06-11 01:47:01 +09:00
rav
d9909b91d3 enable frequency analysis and automatic, dynamic changing of notch filter frequencies
change F3 from CM1 to CM4
add debug flags for FFT
add bandpass filter
add different filtering apply function
add feature DYNAMIC_FILTER
replace mode GTUNE with DYNAMIC FILTER
move gyro frequency analysis into gyro loop instead of own task
2017-05-11 16:10:29 +02:00
Hydra
22147105fb CF/BF - First cut of MSP current sensor.
How it works:
1. Current Meter Source on FC is set to MSP/OSD Slave by user.
2. On reboot FC sends MSP_ANALOG to OSD Slave.
3. OSD Slave listens for incoming MSP as usual.
4. OSD responds to MSP as usual.
6. The FC recevies the data from the OSD Slave and updates the MSP
Current Meter.
2017-04-29 20:57:08 +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
be063ebbbf CF/BF - Remove usage of USE_FC based on PR discussion decisions. Add
USE_VIRTUAL_CURRENT_METER.
2017-04-12 00:39:27 +01:00
Hydra
b4dc3b53f5 CF/BF - Fix more compiler warnings. 2017-04-12 00:39:27 +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
ce8c5fbd79 Merge pull request #2760 from mikeller/reworked_altitude_estimation
Reworked altitude estimation. Made it work when ACC is disabled.
2017-04-10 13:00:16 +12:00
Hydra
ba75dc4f1d CF/BF - SPRacingF3OSD - Allow cli and bootloader again. 2017-04-09 14:17:58 +01: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
mikeller
6a03b48e7f Reworked altitude estimation. Made it work when ACC is disabled. 2017-04-08 22:54:44 +12:00
Michael Keller
5ff8ae9628 Increased GPS task frequency to 100Hz to prevent serial buffer overflows. 2017-04-04 12:24:19 +12:00
Hydra
709cd9f8df CF/BF - reduce code size by changing dependencies in battery.c and removing two
functions from fc_tasks.c

I don't like the dependency changes, but I'm not overly concerned by
them.
2017-03-19 10:40:22 +00:00
Hydra
c0c6450e61 CF/BF - use one task for each battery sensor. 2017-03-19 10:40:16 +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
c92679f454 Added PG config definitions 4 2017-02-25 18:19:56 +00:00
Martin Budden
ea2ec8b069 Added hooks for gyro data analysis 2017-02-23 15:52:26 +00:00
Martin Budden
f6c8319361 Removed a number of static config pointers 2017-02-02 10:41:19 +00:00
Martin Budden
5851b21e4a Removed a number of static config pointers 2017-02-01 12:58:29 +00:00
Martin Budden
79d4b2146d Preparation for conversion to parameter groups 2017-02-01 08:46:19 +00:00
Raphael Coeffic
1768c1fda8 tramp: implemented VTX_COMMON interface. 2017-01-16 17:18:10 +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
jflyper
b9430f82b7 Call vtxCommonProcess instead of device dependent periodic service function 2017-01-15 02:14:39 +09:00
jflyper
6550d738db Some enhancements 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
6606c0d39f Renamed some items based on feedback from @martinbudden 2017-01-11 09:23:52 +11:00
blckmn
a88d2db0d5 Added dispatcher start only if needed. 2017-01-11 08:57:26 +11:00
blckmn
1e75f90c52 Merge branch 'master' into task_dispatch 2017-01-10 09:39:59 +11:00
Martin Budden
aab9c7135b Added CLI option to set serial task update rate 2017-01-09 10:33:57 +00:00
Martin Budden
8edb9ef810 Minor gyro optimisations 2017-01-08 21:36:16 +00:00
blckmn
79c593b048 Updated in response to feedback.
Now using linked list.
2017-01-06 09:22:58 +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
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
jflyper
86bb650617 Merge remote-tracking branch 'betaflight/master' into bfdev-smartaudio 2016-12-30 00:11:57 +09:00
Martin Budden
372ddf67cf Merge pull request #1840 from atomiclama/bf_remove_warning
cppcheck warning removal
2016-12-26 16:33:09 +01:00
Martin Budden
ee8a1676c4 Moved accelerometerTrims into accelerometerConfig() 2016-12-17 22:30:03 +00:00
atomiclama
cdf7e43ab1 cppcheck warning removal 2016-12-16 14:26:16 +00:00
jflyper
af3132d422 Rebased 2016-12-12 06:35:38 +09:00
Bas Delfos
1561481e52 Enable battery task when ESC sensor is available 2016-12-08 21:19:23 +01:00
Bas Delfos
b53cbbefc3 Moved ESC telemetry to sensors 2016-12-08 21:19:23 +01:00
jflyper
0f59251b58 Rebased 2016-12-09 00:09:25 +09:00
Martin Budden
229f6d14d4 Moved accZero and magZero out of sensorTrims into acc and compass config 2016-12-05 06:49:15 +00:00
jflyper
0cbe440cea Rebased 2016-12-05 11:43:34 +09:00