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

237 commits

Author SHA1 Message Date
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
mikeller
e121e1e92b Separated LED_STRIP parameter groups, separated out LED_STRIP status mode code. 2019-02-05 08:39:42 +13:00
jflyper
cc0e689bb5 Add USE_ACC conditionals 2019-02-04 20:37:43 +09:00
mikeller
299d96fdc7 Added battery cell count based automatic PID profile switching. 2019-02-04 13:15:43 +13:00
Michael Keller
5a1c0769e7
Merge pull request #7503 from etracer65/osd_profile_msp
Add MSP support for OSD profiles and OSD stick overlay
2019-02-03 14:05:32 +13:00
Bruce Luckcuck
5c05e945df Add MSP support for OSD profiles and OSD stick overlay
Adds available profiles and currently selected OSD profile. If the `USE_OSD_PROFILES` feature is not available then the profile count and selected profile will be 1.

Adds OSD stick overlay radio mode. A zero value indicates OSD stick overlay is not available.
2019-02-02 09:40:48 -05:00
Bruce Luckcuck
d66533fb5a Update MSP gyro alignment support and preserve backwards compatibility
Preserve gyro/acc alignment backwards compatibility for configurator versions unaware of the revised sensor alignment scheme.

Update MSP to add support for:
1. Flag to indicate whether `USE_MULTI_GYRO` is available
2. `gyro_to_use`
3. `gyro_1_sensor_align` and `gyro_2_sensor_align`.
2019-02-01 21:52:47 -05:00
mikeller
21edada68b Removed leftover references to 'gyro_align', 'acc_align'. 2019-02-01 01:50:40 +13:00
Bruce Luckcuck
d8c54460a9 Update ledstrip MSP to add support for advanced flag and profile
Added a flag indicating the level of ledstrip support (to allow improved Configurator behavior) along with support for reading/setting the current `ledstrip_profile`.

ledstrip support flag is as follows:
0 = basic ledstrip available
1 = advanced ledstrip available
2019-01-29 09:43:19 -05:00
mikeller
38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Renamed from src/main/interface/msp.c (Browse further)