1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00
Commit graph

239 commits

Author SHA1 Message Date
jflyper
94e3273415 Merge pull request #3590 from martinbudden/bf_flash_config
Configurable FLASH
2017-07-30 19:01:26 +09:00
blckmn
7a5d1d9b8e Moving boardIdentifier out of config header and into systemConfig (for generic targets) 2017-07-25 09:05:12 +10:00
Martin Budden
9fe0e9eb2a Configurable FLASH 2017-07-21 17:18:51 +01:00
Dan Nixon
e0ebee168a Remove the ability to disable stage 2 failsafe 2017-07-19 09:47:09 +01:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
Faduf
1c2eb3f731 Add F4 overclock possibility
F4 overclock activation via CLI and not automaticaly when Gyro 32k is activated

Add condition in target file to alow overclock

Replace ALLOW_OVERCLOCK by DISABLE_OVERCLOCK

Remanant flag and soft reboot for overclocking
2017-07-03 21:42:45 +02:00
borisbstyle
98b301f1e8 Merge pull request #3302 from blckmn/config_led
Making status LEDs configurable.
2017-06-19 08:19:06 +02:00
Dominic Clifton
db006b1585 Merge pull request #2856 from ledvinap/improvement-64bit-boxid
array based box masks
2017-06-19 13:31:08 +12:00
blckmn
0752a301b5 Moving config for Status Leds 2017-06-17 19:20:10 +10:00
blckmn
1bc421133e Reset all target definitions to use LEDx_PIN for clarity. 2017-06-17 16:56:35 +10:00
blckmn
daa0afcd39 Initial making of LEDs configurable 2017-06-17 16:47:38 +10:00
mikeller
774cae215c Removed support for profile handling in parameter groups. 2017-06-15 03:11:02 +12:00
Dominic Clifton
a72f98e4f3 Merge pull request #2841 from McGiverGim/fix-compile-issues-ifndef-USE_SERVOS
Fix compiles issues when not defined USE_SERVOS
2017-06-05 09:51:36 +12: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
0b1383a730 Refactored the validation code
- The check is active regardless of the USE_UNCOMMON_MIXER to detect
unsupported/insufficiently supported mixers.
- Custom mixers always pass the check.
- Mixer mode resets to MIXER_CUSTOM if motorCount != 0 but motor array
is NULL.
- Mixer mode resets to MIXER_CUSTOM_AIRPLANE if useServo but servo
count is zero.
2017-06-01 00:30:04 +09:00
jflyper
7403576a15 Reserve MIXER_GIMBAL and MIXER_PPM_TO_SERVO 2017-05-29 18:37:48 +09:00
jflyper
5af12d40b8 Avoid MIXER_CUSTOM, MIXER_CUSTOM_AIRPLANE and MIXER_CUSTOM_TRI from resetting into MIXER_CUSTOM 2017-05-29 15:38:33 +09:00
jflyper
93d554516a Omit special case of USE_OSD_SLAVE and USE_QUAD_MIXER_ONLY 2017-05-29 13:30:21 +09:00
jflyper
ba99a372a1 Reset mixer to MIXER_CUSTOM if configured mixer is not supported 2017-05-29 12:13:33 +09:00
jflyper
fdfe9e8af3 Configurable UART 2017-05-24 11:49:21 +09:00
jflyper
4b80bceb1f Rebased on to master 2017-05-07 22:26:47 +09:00
jflyper
34ac92c1de Prepare for #3015 merge 2017-05-07 22:23:29 +09:00
Martin Budden
3840be09a7 Altitude tidy 2017-05-06 10:29:37 +01: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
jflyper
d4a2c23fe3 Fix semantically incorrect macro name
Also fixes semantically incorrect resource index calculation in
serial_softserial.c.
2017-05-04 21:33:35 +09: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
Sean Kelly
c8fbbaae95 Fixing debug compile errors due to beeper defines 2017-04-13 20:27:14 -07: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
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
mikeller
6a03b48e7f Reworked altitude estimation. Made it work when ACC is disabled. 2017-04-08 22:54:44 +12:00
DieHertz
8768dfd3df Cleaned USE_PARAMETER_GROUPS remainders 2017-04-02 03:04:37 +03: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
mikeller
bed980bb27 Changed direction parameters into boolean to ensure a direction is defined. 2017-03-27 21:21:01 +13:00
Martin Budden
1281d30eba Merge pull request #2692 from mikeller/make_yaw_control_inversion_boolean
Changed 'yaw_control_direction' into 'yaw_control_inverted' and made it a boolean, to get rid of the 'undefined' case 0.
2017-03-25 07:26:40 +00:00
mikeller
728adb3a86 Changed 'yaw_control_direction' into 'yaw_control_inverted' and made it a boolean, to get rid of the 'undefined' case 0. 2017-03-24 20:49:52 +13:00
mikeller
4d76bd8ea0 Made 'resetConfigs()' take 'targetConfiguration()' into account. 2017-03-24 03:05:18 +13: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
DieHertz
0b100bf167 Fixed rxfail and rxrange CLI commands 2017-03-16 23:10:10 +03:00
Martin Budden
58a8bf3b6c USE_PARAMETER_GROUPS tidy 2 2017-03-10 07:39:09 +00:00
Martin Budden
1964362dce Removal of USE_PARAMETER_GROUPS 1 2017-03-09 22:03:59 +00:00
Martin Budden
728b596e1b Minor fixes to parameter groups 2017-03-09 19:02:47 +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
Martin Budden
9e4de2ea3b Added separate yaw pidsum limit 2017-03-07 11:25:21 +00:00
Martin Budden
1e529a96b9 PG CLI additions 5 2017-03-06 17:37:58 +00:00
Martin Budden
aa561d542b Updates to support parameter groups 2017-03-06 13:48:14 +00:00
Andrey Miroshnikov
75e34ce0c6 Make RSSI inversion work for PWM ADC 2017-03-03 11:36:15 +03:00
mikeller
c71ef27104 Added validation for Dterm notch filter settings. 2017-02-28 17:58:56 +00:00
Martin Budden
9b62a4e38f Added PG config definitions 10 2017-02-28 06:28:06 +00:00