1
0
Fork 0
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:
Paweł Spychalski 2024-04-21 11:17:03 +02:00 committed by GitHub
commit eae4e132e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 1 deletions

View file

@ -5703,6 +5703,12 @@
"ezTuneExpo": { "ezTuneExpo": {
"message": "Expo" "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": { "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." "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."
}, },

View file

@ -566,7 +566,8 @@ var FC = {
stability: null, stability: null,
aggressiveness: null, aggressiveness: null,
rate: null, rate: null,
expo: null expo: null,
snappiness: null,
}; };

View file

@ -1515,6 +1515,7 @@ var mspHelper = (function (gui) {
EZ_TUNE.aggressiveness = data.getUint8(7); EZ_TUNE.aggressiveness = data.getUint8(7);
EZ_TUNE.rate = data.getUint8(8); EZ_TUNE.rate = data.getUint8(8);
EZ_TUNE.expo = data.getUint8(9); EZ_TUNE.expo = data.getUint8(9);
EZ_TUNE.snappiness = data.getUint8(10);
break; break;
case MSPCodes.MSP2_INAV_EZ_TUNE_SET: case MSPCodes.MSP2_INAV_EZ_TUNE_SET:
@ -2159,6 +2160,7 @@ var mspHelper = (function (gui) {
buffer.push(EZ_TUNE.aggressiveness); buffer.push(EZ_TUNE.aggressiveness);
buffer.push(EZ_TUNE.rate); buffer.push(EZ_TUNE.rate);
buffer.push(EZ_TUNE.expo); buffer.push(EZ_TUNE.expo);
buffer.push(EZ_TUNE.snappiness);
break; break;

View file

@ -118,6 +118,16 @@
</div> </div>
</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>
<div class="ez-tune-preview"> <div class="ez-tune-preview">

View file

@ -187,6 +187,8 @@ TABS.pid_tuning.initialize = function (callback) {
GUI.sliderize($('#ez_tune_rate'), EZ_TUNE.rate, 0, 200); GUI.sliderize($('#ez_tune_rate'), EZ_TUNE.rate, 0, 200);
GUI.sliderize($('#ez_tune_expo'), EZ_TUNE.expo, 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 () { $('.ez-element').on('updated', function () {
updatePreview(); updatePreview();
}); });
@ -317,6 +319,7 @@ TABS.pid_tuning.initialize = function (callback) {
EZ_TUNE.aggressiveness = $('#ez_tune_aggressiveness').val(); EZ_TUNE.aggressiveness = $('#ez_tune_aggressiveness').val();
EZ_TUNE.rate = $('#ez_tune_rate').val(); EZ_TUNE.rate = $('#ez_tune_rate').val();
EZ_TUNE.expo = $('#ez_tune_expo').val(); EZ_TUNE.expo = $('#ez_tune_expo').val();
EZ_TUNE.snappiness = $('#ez_tune_snappiness').val();
function send_rc_tuning_changes() { function send_rc_tuning_changes() {
MSP.send_message(MSPCodes.MSPV2_INAV_SET_RATE_PROFILE, mspHelper.crunch(MSPCodes.MSPV2_INAV_SET_RATE_PROFILE), false, saveRateDynamics); MSP.send_message(MSPCodes.MSPV2_INAV_SET_RATE_PROFILE, mspHelper.crunch(MSPCodes.MSPV2_INAV_SET_RATE_PROFILE), false, saveRateDynamics);