mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Merge branch 'master' into rfc_filters
This commit is contained in:
commit
92948e2212
5 changed files with 59 additions and 15 deletions
|
@ -1178,6 +1178,8 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
FC.ADVANCED_TUNING.feedforward_averaging = data.readU8();
|
||||
FC.ADVANCED_TUNING.feedforward_smooth_factor = data.readU8();
|
||||
FC.ADVANCED_TUNING.feedforward_boost = data.readU8();
|
||||
FC.ADVANCED_TUNING.feedforward_max_rate_limit = data.readU8();
|
||||
FC.ADVANCED_TUNING.feedforward_jitter_factor = data.readU8();
|
||||
FC.ADVANCED_TUNING.vbat_sag_compensation = data.readU8();
|
||||
FC.ADVANCED_TUNING.thrustLinearization = data.readU8();
|
||||
}
|
||||
|
@ -2150,6 +2152,8 @@ MspHelper.prototype.crunch = function(code) {
|
|||
buffer.push8(FC.ADVANCED_TUNING.feedforward_averaging)
|
||||
.push8(FC.ADVANCED_TUNING.feedforward_smooth_factor)
|
||||
.push8(FC.ADVANCED_TUNING.feedforward_boost)
|
||||
.push8(FC.ADVANCED_TUNING.feedforward_max_rate_limit)
|
||||
.push8(FC.ADVANCED_TUNING.feedforward_jitter_factor)
|
||||
.push8(FC.ADVANCED_TUNING.vbat_sag_compensation)
|
||||
.push8(FC.ADVANCED_TUNING.thrustLinearization);
|
||||
}
|
||||
|
|
|
@ -519,6 +519,8 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
$('select[id="feedforwardAveraging"]').val(FC.ADVANCED_TUNING.feedforward_averaging);
|
||||
$('input[name="feedforwardSmoothFactor"]').val(FC.ADVANCED_TUNING.feedforward_smooth_factor);
|
||||
$('input[name="feedforwardBoost"]').val(FC.ADVANCED_TUNING.feedforward_boost);
|
||||
$('input[name="feedforwardMaxRateLimit"]').val(FC.ADVANCED_TUNING.feedforward_max_rate_limit);
|
||||
$('input[name="feedforwardJitterFactor"]').val(FC.ADVANCED_TUNING.feedforward_jitter_factor);
|
||||
|
||||
// Vbat Sag Compensation
|
||||
const vbatSagCompensationCheck = $('input[id="vbatSagCompensation"]');
|
||||
|
@ -544,6 +546,8 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
} else {
|
||||
$('.vbatSagCompensation').hide();
|
||||
$('.thrustLinearization').hide();
|
||||
$('.feedforwardMaxRateLimit').hide();
|
||||
$('.feedforwardJitterFactor').hide();
|
||||
|
||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_40)) {
|
||||
$('.pid_tuning .ROLL input[name="f"]').val(FC.ADVANCED_TUNING.feedforwardRoll > 0 ? FC.ADVANCED_TUNING.feedforwardRoll : PID_DEFAULT[4]);
|
||||
|
@ -1342,6 +1346,7 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
FC.ADVANCED_TUNING.feedforward_averaging = $('select[id="feedforwardAveraging"]').val();
|
||||
FC.ADVANCED_TUNING.feedforward_smooth_factor = parseInt($('input[name="feedforwardSmoothFactor"]').val());
|
||||
FC.ADVANCED_TUNING.feedforward_boost = parseInt($('input[name="feedforwardBoost"]').val());
|
||||
FC.FILTER_CONFIG.dyn_lpf_curve_expo = parseInt($('.pid_filter input[name="dtermLowpassDynExpo"]').val());
|
||||
FC.ADVANCED_TUNING.vbat_sag_compensation = $('input[id="vbatSagCompensation"]').is(':checked') ? parseInt($('input[name="vbatSagValue"]').val()) : 0;
|
||||
FC.ADVANCED_TUNING.thrustLinearization = $('input[id="thrustLinearization"]').is(':checked') ? parseInt($('input[name="thrustLinearValue"]').val()) : 0;
|
||||
FC.FILTER_CONFIG.dyn_lpf_curve_expo = parseInt($('.pid_filter input[name="dtermLowpassExpo"]').val());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue