mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 04:45:20 +03:00
Add FF Interpolation Options
Sonar issues Move to Msp 1.44 and some fixes sonar sonar2 new sonar issues Suggested changes Default to AVG_2 Fix Indexation remove HEAD word fix API const and sonnar
This commit is contained in:
parent
27848ca94a
commit
f5410499dd
5 changed files with 99 additions and 2 deletions
|
@ -1152,6 +1152,12 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
ADVANCED_TUNING.motorOutputLimit = data.readU8();
|
||||
ADVANCED_TUNING.autoProfileCellCount = data.read8();
|
||||
ADVANCED_TUNING.idleMinRpm = data.readU8();
|
||||
|
||||
if(semver.gte(CONFIG.apiVersion, API_VERSION_1_44)) {
|
||||
ADVANCED_TUNING.ff_interpolate_sp = data.readU8();
|
||||
ADVANCED_TUNING.ff_smooth_factor = data.readU8();
|
||||
ADVANCED_TUNING.ff_boost = data.readU8();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2086,6 +2092,12 @@ MspHelper.prototype.crunch = function(code) {
|
|||
buffer.push8(ADVANCED_TUNING.motorOutputLimit)
|
||||
.push8(ADVANCED_TUNING.autoProfileCellCount)
|
||||
.push8(ADVANCED_TUNING.idleMinRpm);
|
||||
|
||||
if(semver.gte(CONFIG.apiVersion, API_VERSION_1_44)) {
|
||||
buffer.push8(ADVANCED_TUNING.ff_interpolate_sp)
|
||||
.push8(ADVANCED_TUNING.ff_smooth_factor)
|
||||
.push8(ADVANCED_TUNING.ff_boost);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue