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

157 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
mikeller
5cf42f40b6 Add booting into the flash boot loader as an option. 2019-06-16 14:46:38 +12:00
mikeller
f8a13c9ac8 Fixed help text for CLI 'serialpassthrough'. 2019-06-16 13:14:45 +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
ee564432f6
add left side choosable for passthrough (#8395)
add left side choosable for passthrough
2019-06-14 00:40:19 +12:00
azolyoung
568dc62087 use array to store the port1&port2 config 2019-06-13 16:17:11 +08: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
azolyoung
b7270917c8 add left side choosable for passthrough 2019-06-12 09:51:00 +08:00
jflyper
22d046c879 [H7] Add USE_TIMER_MGMT to H7 2019-06-10 00:00:16 +09:00
Michael Keller
ad00c6b66b
[H7] Support USE_DMA_SPEC (#8389)
[H7] Support USE_DMA_SPEC
2019-06-10 01:20:55 +12:00
jflyper
7db7431aeb Use DEFW instead of DEFA for UART dmaopts 2019-06-08 11:44:37 +09:00
jflyper
16f2392458 [H7] Add USE_DMA_SPEC to H7 2019-06-07 08:00:52 +09:00
Michael Keller
d486c47bc1
Removed 'slots' from the adjustment range configuration. (#8369)
Removed 'slots' from the adjustment range configuration.
2019-06-05 18:51:02 +12:00
Michael Keller
d3a70bc635 Added comment about removed parameter in CLI. 2019-06-05 13:30:30 +12:00
Michael Keller
32416c7972
Baro fixes 1 (#7711)
Baro fixes 1
2019-06-05 01:07:24 +12:00
mikeller
75b1c0d4ce Removed 'slots' from the adjustment range configuration. 2019-06-05 00:56:37 +12:00
mikeller
cb207e4637 Fixed typo in help text for CLI 'timer' command. 2019-06-02 12:19:16 +12:00
mikeller
aa1c7025d1 Converted Unified Target configurations to use alternate functions. 2019-05-28 00:28:02 +12:00
mikeller
b64b136780 Changed 'timer' output to list timers based on alternate function. 2019-05-25 23:52:31 +12:00
jflyper
b749d56d9e Ammend BMP085 driver for configurability of EOC and XCLR pin 2019-05-20 19:13:50 +02:00
Michael Keller
7cd030559d
Use RC Smoothing initialized settings rather than current PG values (#8282)
Use RC Smoothing initialized settings rather than current PG values
2019-05-21 03:14:26 +12:00
Michael Keller
ae9f938cb5
Added selection by alternate function to CLI 'timer'. (#8306)
Added selection by alternate function to CLI 'timer'.
2019-05-21 02:40:11 +12:00
Michael Keller
a1421e6fdc
Add timer info to CLI 'timer' command. (#8305)
Add timer info to CLI 'timer' command.
2019-05-21 02:33:29 +12:00
Michael Keller
40fc353f9f
Fixed printing of reset DMA options in 'diff'. (#8303)
Fixed printing of reset DMA options in 'diff'.
2019-05-20 20:02:04 +12:00
Michael Keller
1c98fc58d6
Merge pull request #8302 from mikeller/fix_uint32_t_printing
Fixed setting / printing of VAR_UINT32 values.
2019-05-20 19:59:10 +12:00
Michael Keller
70215cc758
Really fixed flash erasing. (#8300)
Really fixed flash erasing.
2019-05-20 19:57:13 +12:00
mikeller
f169176022 Add timer info to CLI 'timer' command. 2019-05-20 01:10:29 +12:00
mikeller
d4cd3d8227 Added selection by alternate function to CLI 'timer'. 2019-05-20 00:54:06 +12:00
jflyper
f5084a59bd Partitions are now accessed by types rather than indices 2019-05-19 20:32:52 +09:00
mikeller
ab9b7ff366 Fixed printing of reset DMA options in 'diff'. 2019-05-19 18:55:29 +12:00
mikeller
8233e4d7a3 Fixed printing of VAR_UINT32 values. 2019-05-19 16:19:18 +12:00
mikeller
babad40dcb Really fixed flash erasing. 2019-05-19 12:30:37 +12:00
Dominic Clifton
92999681e3 Add flash partitioning system 2019-05-18 21:39:08 +09:00
Dominic Clifton
0e4cc5c3cf Add flash_scan to cli 2019-05-17 01:05:43 +09:00
Bruce Luckcuck
3cee0c99cc Use RC Smoothing initialized settings rather than current PG values
Prevents possibility of changing paramaters after initializing affecting runtime operation of RC smoothing. Parameter values are loaded during initialization instead of relying on the current PG values.
2019-05-16 09:37:26 -04:00
Michael Keller
31a059d4d5
[FLASHFS] Reinitialise flashFs after erasing flash chip. (#8237)
[FLASHFS] Reinitialise flashFs after erasing flash chip.
2019-05-11 23:41:10 +12:00
Michael Keller
a27a695fa1
Revise PID/Rate profile names to use get/set and eliminate extra PG's (#8231)
Revise PID/Rate profile names to use get/set and eliminate extra PG's
2019-05-10 09:30:55 +12:00
Dominic Clifton
e9b666421a Reinitialise flashFs after erasing flash chip.
Ensures erase actually worked rather than assuming it did.
2019-05-09 14:18:25 +09:00
Michael Keller
f085dad6bf
Fix MODE_STRING blank value output and improve validation messages (#8219)
Fix MODE_STRING blank value output and improve validation messages
2019-05-09 14:50:59 +12:00
Bruce Luckcuck
f5bc673ada Revise PID/Rate profile names to use get/set and eliminate extra PG's
Removes the custom CLI commands to update or display the PID and Rate profile names. Moves the storage into the pidProfile and controlRateProfile PG's.

Names can now be set with:
set profile_name = NAME
set rate_profile_name = NAME

Also added profile name display to the profile and rate CMS menus.
2019-05-08 09:03:31 -04:00
Bruce Luckcuck
f5722273aa Fix MODE_STRING blank value output and improve validation messages
Emptry MODE_STRING paramaters would produce CLI output that would then generate errors if reapplied using a `diff` or `dump`. Fixed the output for blank values to be compatible with setting an empty string (clearing a previous value).

Also improve the length validation to report the allowed character range.
2019-05-07 16:39:00 -04:00
Bruce Luckcuck
a1135dbbc4 Improve CLI diff output to only include non-empty sections
Eliminates the empty blocks for sections that have no changes from defaults.
2019-05-07 09:48:45 -04:00
Michael Keller
a8f6ea0b72
Add PID and Rate profile names, osd elements and cli config (#7696)
Add PID and Rate profile names, osd elements and cli config
2019-05-07 20:04:39 +12:00
Michael Keller
d3677b79aa
Remove CLI "display_name" and notify that "name" will be removed (#8190)
Remove CLI "display_name" and notify that "name" will be removed
2019-05-07 12:13:50 +12:00
Pieter Kruger
de5a54a19a Add PID and Rate Profile names 2019-05-06 22:02:33 +10:00
Bruce Luckcuck
884ad3193e Remove CLI "display_name" and notify that "name" will be removed
These parameters can now be configured directly with the set/get commands.

The "name" command will still function but presents a warning that it will be removed and to use "set name = " instead.
2019-05-06 07:01:06 -04:00
Dominic Clifton
8e5c1dd7a3 RTC6705 resource cleanup. 2019-05-06 01:23:43 +02:00
mikeller
c1ac8c4eb4 Fixed feedback when changing timer from 'NONE' in CLI. 2019-05-04 23:00:05 +12:00
root
ad43631a8b clean up some spaces before newlines 2019-05-02 23:24:36 +00:00
MJ666
1729255eca CC2500 resoure configuration fix 2019-04-28 14:17:47 +02:00