1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00
Commit graph

309 commits

Author SHA1 Message Date
TheIsotopes
9fa5cf40d2
boatloader typo fix 2019-06-29 08:56:56 +02:00
mikeller
0e35163ed2 Fixed FLASH boot loader option. 2019-06-28 01:19:42 +12:00
Michael Keller
ed266e7151
[SmartAudio] Added support for custom frequency tables (#8380)
[SmartAudio] Added support for custom frequency tables
2019-06-25 02:16:14 +12:00
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
75b1c0d4ce Removed 'slots' from the adjustment range configuration. 2019-06-05 00:56:37 +12:00
Michael Keller
cf32bea79d
Fix VTX chan to 0 via SetFreqByMHz (#8338)
Fix VTX chan to 0 via SetFreqByMHz
2019-05-25 22:56:07 +12:00
E Thomas
c9589fbe4d Fixed VTX chan to 0 via SetFreqByMHz 2019-05-23 22:26:04 -04:00
mikeller
2d184359a0 Fixed build for targets without RC smoothing. 2019-05-22 21:02:24 +12: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
70215cc758
Really fixed flash erasing. (#8300)
Really fixed flash erasing.
2019-05-20 19:57:13 +12:00
Bruce Luckcuck
25435ea49c Add reboot required arming disabled flag, support for setting in MSP 2019-05-19 09:42:03 -04:00
jflyper
f5084a59bd Partitions are now accessed by types rather than indices 2019-05-19 20:32:52 +09: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
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
d9382ad012
Add new basic feature conditionals (#8175)
Add new basic feature conditionals
2019-05-06 19:07:11 +12:00
Michael Keller
8124b42c76
Fixed missing comments in 'msp.c'. (#8158)
Fixed missing comments in 'msp.c'.
2019-05-05 22:33:17 +12:00
jflyper
45b7fa8095 Add and handle USE_PWM_OUTPUT 2019-05-05 18:05:13 +09:00
mikeller
d468727d98 Fixed missing comments in 'msp.c'. 2019-05-04 14:13:14 +12:00
root
ad43631a8b clean up some spaces before newlines 2019-05-02 23:24:36 +00:00
jflyper
e3fd11014f Report BARO_NONE and MAG_NONE for baro and mag MSP requests
Responding with zero (BARO_DEFAULT and MAG_DEFAULT) will cause
configurator to display these sensors enabled, and since write (set)
side is ignored, they can never be displayed as disabled.
2019-05-01 01:55:59 +09:00
jflyper
625959aa2f Enforce USE_BARO and USE_MAG 2019-04-28 21:55:10 +09:00
Michael Keller
7d86cd6523
Merge pull request #7986 from ianrmurphy/add-rate-limits-to-msp
Added rate limit settings to MSP API 1.42 for configurator.
2019-04-14 21:52:05 +12:00
Michael Keller
c3d828e4b4
Merge pull request #7737 from joelucid/remove_ff
remove smart_feedforward
2019-04-14 21:32:39 +12:00
ianrmurphy
9fd158412a Added rate limit settings to MSP API 1.42 for configurator. 2019-04-13 14:14:39 +01:00
mikeller
e44f75b4a7 Fixed gyro detection for multi gyro setups. 2019-04-04 00:39:55 +13:00
Bruce Luckcuck
4caa20bab2 Revise ESCSERIAL to work with unified targets
Remove dependencies on timer definition order and base on the pins assigned as motor resources.
2019-03-30 23:38:43 -04:00
Thorsten Laux
11c21368c8 remove smart_feedforward 2019-03-08 06:49:09 +01:00
Michael Keller
362a8f4e04
Merge pull request #7736 from mikeller/add_dterm_filter2_type
Added MSP for dterm filter 2 type.
2019-03-08 13:18:17 +13:00
mikeller
c4cb671b70 Added MSP for dterm filter 2 type. 2019-03-08 09:29:05 +13:00
mikeller
9dede30bad Consolidated changes for API 1.41. 2019-03-08 08:23:10 +13:00
Miguel Angel Mulero Martinez
05e5417f10 Add integrated yaw to MSP 2019-03-07 11:39:11 +01:00
Michael Keller
58d15b8ebe
Merge pull request #7719 from mikeller/add_unified_flag_msp
Added flag for unified target to MSP.
2019-03-07 03:51:22 +13:00
Michael Keller
e808242828
Merge pull request #7717 from McGiverGim/add_dyn_filters_msp
Add dynamic lpf and dterm filters to MSP
2019-03-07 03:51:02 +13:00
Miguel Angel Mulero Martinez
9c8fe796ba Add dynamic lpf and dterm filters to MSP 2019-03-05 12:18:30 +01:00
mikeller
ddf76beb55 Added flag for unified target to MSP. 2019-03-05 22:28:13 +13:00
Miguel Angel Mulero Martinez
131baa2ebd Add D_MIN to MSP 2019-03-05 09:17:07 +01:00
Bruce Luckcuck
30672a37c5 Refactor OSD element display code
Remove the giant `select` block that contained all the code to generate the elements and transition them to individual functions called only when the element is active. Simplifies the code and results in a performance improvement as it's not necessary to fall through the large `select` statement for every element that will be drawn. The individual functions and the element to function mapping are moved to a new `osd_elements.c` file.

Moved the OSD related code files to a new `osd/` directory.

Also pre-analyze the active elements and only process those that are active. This also saves processing as it's not necessary to loop through all 50 or so elements when only a couple are active.

Various other cleanup and removal of stale or unnecessary code.

In the default configuration the element drawing phase of the OSD task is reduced from ~51us to ~35us - resulting in about a 30% decrease in processing time.
2019-02-21 14:03:25 -05:00
Dave Huber
3d1dee8009 Fix MSP_MODE_RANGES_EXTRA link to permanentId 2019-02-17 00:34:11 -06:00
AJ Christensen
4fdee6ec1c Gyro Sensors: Remove 32kHz gyro sampling mode(s) and associated code 2019-02-13 22:41:21 +13:00
mikeller
858c55af74 Fixed USB MSC activation over MSP. Also fixed fallthrough in case of invalid reboot type. 2019-02-10 14:59:13 +13:00
Michael Keller
d63878aebc
Merge pull request #7553 from etracer65/osd_profile_switch_msp_cms
Add OSD profile switching to MSP and CMS
2019-02-10 12:55:55 +13:00
Michael Keller
4f7fa25b06
Merge pull request #7543 from dthubereng/add_mode_logic_to_msp
Add MODE_RANGES_EXTRA to MSP
2019-02-09 13:34:00 +13:00
Bruce Luckcuck
1d6f86d234 Add OSD profile switching to MSP and CMS
Update the active OSD profile based on the MSP message. Makes the OSD show the selected profile immediately when the drop-down is changed in the Configurator. All other elements have "live" updates so this should a well.

Add CMS menu to select the OSD profile.
2019-02-08 13:26:48 -05:00
mikeller
b5908f5bab Applied 'USE_ACC' consistently. 2019-02-08 09:51:48 +13:00
Michael Keller
59ea4becb3
Merge pull request #7516 from mikeller/add_automatic_pid_profile_switching
Added battery cell count based automatic PID profile switching.
2019-02-08 09:28:07 +13:00
Dave Huber
bb95d53e62 Add mode logic to MSP
Add msp code 238.
Add MSP_MODE_RANGES code to msp.c.
Add 2 extra byte reads to MSP_SET_MODE_RANGES.
Add check for extra bytes in MSP_SET_MODE_RANGES
Add API documentation for MSP_MODE_RANGES_EXTRA
convert linkedTo storage to boxid
Send length of array in EXTRAS data
Add note that alignment of elements of MODE_RANGES and MODE_RANGES_EXTRA is required and indicated by permanentId.
2019-02-07 10:28:34 -06:00
mikeller
b93b345830 Added the MCU type to MSP. 2019-02-07 00:16:13 +13:00
Michael Keller
7393d5fdac
Merge pull request #7529 from jflyper/bfdev-stronger-USE_ACC
[REFACTOR] More application of USE_ACC
2019-02-06 10:08:49 +13:00