1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00
Commit graph

14419 commits

Author SHA1 Message Date
functionpointer
7cb34205b3 [VTX] vtxTable factory flag and full integration of vtxTable (#8380)
Moved vtxtable frequency mode implementation into `vtx_common.c`.
This makes the implementation available for all vtx types and allows
for some code deduplication (see point below)

Removed band and channel tracking from tramp and rtc6705.
The hardware underlying both only support frequency mode and
the tracking is now done in `vtx_common.c` using the new factory flag.

Deleted vtxStringXXX. to continue supporting builds without
`USE_VTX_TABLE`, new infrastructure was created in
`drivers/vtx_table.c`, which loads fixed tables into vtxTableXXX
when built witout `USE_VTX_TABLE`. Individual vtx implementations no
longer need to load any band/channel tables. They only need to load
their individual power tables when built without `USE_VTX_TABLE`.
Additionally this allows for the next point:

Fully integrated vtxTableXXX and removed the old and no longer needed
indirection of frequency and power tables in `vtxDevice_t`.

Removed VTX_SETTINGS_* constants from `vtx_common.h` and replaced them
with the vtxtable equivalent.

rtc6705 implementation now uses power values from vtxtable instead of
using indices directly. It also stops using index 0. This makes it
consistent with other vtx implementations and is more user configurable.
It also cleans up `telemetry\srxl.c` which had to have a special case for rtc6705.

Finally, frequency entries in the vtxtable can now be marked as empty
by setting their frequency to 0. Betaflight will never allow a blocked
channel to be selected. This is useful for vtxtable index mode
(FACTORY flag set) where manufacturer-defined bands can be truncated
to ensure compliance with local laws and regulations.
2019-06-24 12:28:46 +02:00
Michael Keller
9abf63a0b0
Removed stray 'USE_SMART_FEEDFORWARD' define. (#8455)
Removed stray 'USE_SMART_FEEDFORWARD' define.
2019-06-23 15:17:25 +12:00
mikeller
d12e0c4211 Removed stray 'USE_SMART_FEEDFORWARD' define. 2019-06-22 10:22:13 +12:00
Michael Keller
534938b943
Fixed runtime configuration for CC2500 SPI RX. (#8441)
Fixed runtime configuration for CC2500 SPI RX.
2019-06-20 13:20:55 +12:00
Michael Keller
6160a442c0
remove dead i2c overclock code (#8443)
remove dead i2c overclock code
2019-06-20 13:04:11 +12:00
Steffen Windoffer
41875af760 remove dead i2c overclock code 2019-06-18 16:47:16 +02:00
Michael Keller
1a75b0d5b3
Merge pull request #8439 from McGiverGim/fix_vario_gps_osd
Fix missing VARIO OSD element without baro (using GPS)
2019-06-18 22:35:06 +12:00
Michael Keller
0de2cde64e
Remove an extra file. _config.yml (#8437)
Remove an extra file. _config.yml
2019-06-18 22:34:51 +12:00
Michael Keller
e1724b96a0
Added Unified Target configuration for MATEKF411RX. (#8440)
Added Unified Target configuration for MATEKF411RX.
2019-06-18 21:44:24 +12:00
Michael Keller
5d8bfcb83d
increase SA_MAX_RCVLEN (#8438)
increase SA_MAX_RCVLEN
2019-06-18 21:42:20 +12:00
Jeff Leung
f300d417f4 allow for up to 8 different power levels as well 2019-06-17 21:29:57 +08:00
Michael Keller
d9624c52ed
Fixed help text for CLI 'serialpassthrough'. (#8433)
Fixed help text for CLI 'serialpassthrough'.
2019-06-18 00:14:03 +12:00
Michael Keller
4b6c64fcff
Avoid recalculation of ADC vrefMv, add vrefMv to ADC_INTERNAL debug mode. (#8427)
Avoid recalculation of ADC vrefMv, add vrefMv to ADC_INTERNAL debug mode.
2019-06-18 00:10:36 +12:00
mikeller
57879e2194 Added Unified Target configuration for MATEKF411RX. 2019-06-17 23:20:27 +12:00
mikeller
84a6bd36d8 Fixed runtime configuration for CC2500 SPI RX. 2019-06-17 23:18:53 +12:00
Miguel Angel Mulero Martinez
5fb4324977 Fix missing VARIO OSD element without baro (using GPS) 2019-06-17 10:37:17 +02:00
Kyle K
eddaf24709 Remove an extra file. 2019-06-16 20:57:07 +00:00
Jeff Leung
f5f2d0df16 increase SA_MAX_RCVLEN to allocate enough buffer for receiving setting response from smartaudio v2.1 device 2019-06-17 04:54:17 +08:00
Dominic Clifton
74638da93e Avoid recalculation of adc vrefmv, add vrevfmv to ADC_INTERNAL debug
mode.
2019-06-16 16:01:25 +02:00
mikeller
f8a13c9ac8 Fixed help text for CLI 'serialpassthrough'. 2019-06-16 13:14:45 +12:00
Michael Keller
f7f0c67808
Changed define for hyphen from SYM_COLON to SYM_HYPHEN. (#8424)
Changed define for hyphen from SYM_COLON to SYM_HYPHEN.
2019-06-16 12:40:51 +12:00
mikeller
0ee3768c2f Changed define for hyphen from SYM_COLON to SYM_HYPHEN. 2019-06-15 19:57:52 +12:00
Michael Keller
de60402840
Add units symbol to the vario OSD element (#8419)
Add units symbol to the vario OSD element
2019-06-15 17:10:36 +12:00
Michael Keller
b5a6b543a9
Support 'EEPROM' in file on SD card. (#8379)
Support 'EEPROM' in file on SD card.
2019-06-14 09:28:57 +12:00
Dominic Clifton
58f43634bd Declare eepromData for all builds that require it, rather than having
the target.c define it.
2019-06-14 07:58:33 +12:00
Dominic Clifton
9c274240d8 Allow SDCARD to be used for config/eeprom storage.
* On boot SPI or SDIO is initialised.
* Filesystem is initialised (including creation of blackbox freespace
file)
* Empty config file is created if it doesn't exist, or read if it does.
* If config is invalid/empty then config file is written to, then read
back and verified.

Enable as follows.

target.h:

target.c:
uint8_t eepromData[EEPROM_SIZE];

Changes:
- Replace boolean init flags with single initFlags variables.
- Avoid unused variable warnings.
2019-06-14 07:58:33 +12:00
Michael Keller
576a1a2817
Update to OSD font documentation (#8414)
Update to OSD font documentation
2019-06-14 07:46:44 +12:00
root
91744f29ef Add SYM_HYPHEN to docs 2019-06-13 19:15:50 +00:00
Miguel Angel Mulero Martinez
06878b1265 Change arrows to small at the vario OSD element 2019-06-13 15:09:31 +02:00
Miguel Angel Mulero Martinez
ef74357faf Add units symbol to the vario OSD element 2019-06-13 15:09:30 +02:00
Michael Keller
ee564432f6
add left side choosable for passthrough (#8395)
add left side choosable for passthrough
2019-06-14 00:40:19 +12:00
Michael Keller
7b2bdf304e
Remove blank overwrite in the OSD (#8416)
Remove blank overwrite in the OSD
2019-06-14 00:31:29 +12:00
Michael Keller
7b7250a811
Refactor of OSD fonts (#8390)
Refactor of OSD fonts
2019-06-14 00:31:11 +12:00
Michael Keller
9872dcd529
Remove unused nav_mode and related from GPS code (#8413)
Remove unused nav_mode and related from GPS code
2019-06-13 23:40:07 +12:00
Michael Keller
996f4acf14
Support 'EEPROM' in external flash partition. (#8378)
Support 'EEPROM' in external flash partition.
2019-06-13 23:08:04 +12:00
azolyoung
568dc62087 use array to store the port1&port2 config 2019-06-13 16:17:11 +08:00
Dominic Clifton
45f8168b60 Prevent the system from booting when EEPROM_IN_FLASH is used and the
flash chip is not detected.

This will ensure that the flash config partition will always be present
when requested.
2019-06-13 09:16:29 +02:00
Dominic Clifton
720132b2af Improve robustness of reading config from flash. 2019-06-13 09:16:29 +02:00
Dominic Clifton
cf1ce1a67b Support load/save configuration to external flash
Fixes to 6a3e7d8e6 as the flash partition code had changed during
the merge to master.
2019-06-13 09:16:29 +02:00
Michael Keller
a6c07b046b
Allow the use of EEPROM_IN_RAM on MCUs. (#8376)
Allow the use of EEPROM_IN_RAM on MCUs.
2019-06-13 13:08:47 +12:00
Michael Keller
dfaa3ed43f
Fixed stray file with wrong CRLF. (#8418)
Fixed stray file with wrong CRLF.
2019-06-13 12:17:50 +12:00
mikeller
30608ca1b8 Fixed stray file with wrong CRLF. 2019-06-13 09:04:01 +12:00
root
af8d31c4ea more tweak to OSD font documentation 2019-06-12 16:01:02 +00:00
Michael Keller
7f767a30d8
Fix F1/F3 OPBL targets using wrong linker script. (#8402)
Fix F1/F3 OPBL targets using wrong linker script.
2019-06-13 00:17:40 +12:00
Miguel Angel Mulero Martinez
fdc6aab7a9 Remove remaining blank overwrite in OSD warnings 2019-06-12 14:07:57 +02:00
Dominic Clifton
cf5e75bed4 Improve the code gating for the EEPROM_IN_FLASH and EEPROM_IN_FILE
cases.
2019-06-12 13:47:49 +02:00
Michael Keller
b3b535724e
Fix Flash API timeout issues. (#8401)
Fix Flash API timeout issues.
2019-06-12 23:24:16 +12:00
Dominic Clifton
bc19915bc1 Remove TARGET_EEPROM_INIT/targetEEPROMInit.
Since the only target specific code was for SITL, and really it wasn't
target specific but EEPROM_IN_FILE specific the code is just gated by
the EEPROM_IN_FILE define.
2019-06-12 12:58:52 +02:00
Dominic Clifton
2c4b8eaec3 Cleanup defaults for alternative config storage.
* Provide defaults for EEPROM_SIZE.
* __config_start/end.
2019-06-12 12:47:51 +02:00
Dominic Clifton
e83ba0db0e Allow the use of EEPROM_IN_RAM on MCUs.
If the MCU also supports PERSISTENT ram (not erased on a warm boot) it
allows testing of config changes without wearing out your flash.

e.g.

linker script
-------------
comment out __config_start/__config_end

target.c
--------
PERSISTENT uint8_t eepromData[EEPROM_SIZE]; // persistent, so it
survives warm boots.

target.h
--------
extern uint8_t eepromData[EEPROM_SIZE];

SITL actually keeps the EEPROM in a FILE, loaded into RAM using
alternate FLASH_* implementation.
2019-06-12 12:47:51 +02:00