mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 19:40:22 +03:00
Merge pull request #2031 from iNavFlight/dzikuvx-ez-tune-snappiness
Ez Tune snappiness
This commit is contained in:
commit
eae4e132e5
5 changed files with 23 additions and 1 deletions
|
@ -5703,6 +5703,12 @@
|
|||
"ezTuneExpo": {
|
||||
"message": "Expo"
|
||||
},
|
||||
"ezTuneSnappiness": {
|
||||
"message": "Snappiness"
|
||||
},
|
||||
"ezTuneSnappinessTips": {
|
||||
"message": "Helps to have a snappy stick feeling. Whenever you do a fast stick movement, high Snappiness will accelerate the drone response. Both when you start and stop the manouver. Try different values to find the one that suits you best."
|
||||
},
|
||||
"ezTuneFilterHzTips": {
|
||||
"message": "This sets the base cutoff frequency for all INAV gyro and D-term filters. Higher values will result in lower filter delay and better stabilization, but more noise will go through the filters and motors will get hot, UAV might oscillate and be unfyable. Your goal is to increase this value as high as possible before any negative effects appear. Negative effects include: hot motors, audible osciallations, UAV rapidly shaking, UAV gaining altitude by itself. Usual starting points for 'Filter Hz' are: <strong>3-inch props</strong>: 90, <strong>5-inch props</strong>: 110, <strong>7-inch props</strong>: 90, <strong>10-inch props</strong>: 75, <strong>12-inch props</strong>: 60. Use Blackbox and common sense to find a value that is most suited for your UAV."
|
||||
},
|
||||
|
|
3
js/fc.js
3
js/fc.js
|
@ -566,7 +566,8 @@ var FC = {
|
|||
stability: null,
|
||||
aggressiveness: null,
|
||||
rate: null,
|
||||
expo: null
|
||||
expo: null,
|
||||
snappiness: null,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -1515,6 +1515,7 @@ var mspHelper = (function (gui) {
|
|||
EZ_TUNE.aggressiveness = data.getUint8(7);
|
||||
EZ_TUNE.rate = data.getUint8(8);
|
||||
EZ_TUNE.expo = data.getUint8(9);
|
||||
EZ_TUNE.snappiness = data.getUint8(10);
|
||||
break;
|
||||
|
||||
case MSPCodes.MSP2_INAV_EZ_TUNE_SET:
|
||||
|
@ -2159,6 +2160,7 @@ var mspHelper = (function (gui) {
|
|||
buffer.push(EZ_TUNE.aggressiveness);
|
||||
buffer.push(EZ_TUNE.rate);
|
||||
buffer.push(EZ_TUNE.expo);
|
||||
buffer.push(EZ_TUNE.snappiness);
|
||||
break;
|
||||
|
||||
|
||||
|
|
|
@ -118,6 +118,16 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pid-sliders-axis" data-axis="3">
|
||||
<div style="padding: 1em;" data-i18n="ezTuneSnappinessTips"></div>
|
||||
<div class="pid-slider-row">
|
||||
<span data-i18n="ezTuneSnappiness" class="bold"></span>
|
||||
<div class="number no-border">
|
||||
<input id="ez_tune_snappiness" type="number" class="ez-element" />
|
||||
</div>
|
||||
<div class="clear-both"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ez-tune-preview">
|
||||
|
|
|
@ -187,6 +187,8 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
GUI.sliderize($('#ez_tune_rate'), EZ_TUNE.rate, 0, 200);
|
||||
GUI.sliderize($('#ez_tune_expo'), EZ_TUNE.expo, 0, 200);
|
||||
|
||||
GUI.sliderize($('#ez_tune_snappiness'), EZ_TUNE.snappiness, 0, 100);
|
||||
|
||||
$('.ez-element').on('updated', function () {
|
||||
updatePreview();
|
||||
});
|
||||
|
@ -317,6 +319,7 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
EZ_TUNE.aggressiveness = $('#ez_tune_aggressiveness').val();
|
||||
EZ_TUNE.rate = $('#ez_tune_rate').val();
|
||||
EZ_TUNE.expo = $('#ez_tune_expo').val();
|
||||
EZ_TUNE.snappiness = $('#ez_tune_snappiness').val();
|
||||
|
||||
function send_rc_tuning_changes() {
|
||||
MSP.send_message(MSPCodes.MSPV2_INAV_SET_RATE_PROFILE, mspHelper.crunch(MSPCodes.MSPV2_INAV_SET_RATE_PROFILE), false, saveRateDynamics);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue