mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Add support for custom gyro alignment.
Prior to this, if custom alignment is set in the firmware the configurator will not show the 'Custom' setting and will reset the 'Custom' setting to 'Default' when saved.
This commit is contained in:
parent
e513c279a4
commit
7cc63f1192
1 changed files with 4 additions and 0 deletions
|
@ -322,6 +322,10 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
'CW 270° flip'
|
||||
];
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
|
||||
alignments.push('Custom');
|
||||
}
|
||||
|
||||
var gyro_align_content_e = $('.tab-configuration .gyro_align_content');
|
||||
var legacy_gyro_alignment_e = $('.tab-configuration .legacy_gyro_alignment');
|
||||
var legacy_accel_alignment_e = $('.tab-configuration .legacy_accel_alignment');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue