mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 17:25:14 +03:00
Merge branch 'master' of https://github.com/iNavFlight/inav-configurator into Electron
This commit is contained in:
commit
80beaee158
5 changed files with 25 additions and 3 deletions
3
js/fc.js
3
js/fc.js
|
@ -582,7 +582,8 @@ var FC = {
|
|||
stability: null,
|
||||
aggressiveness: null,
|
||||
rate: null,
|
||||
expo: null
|
||||
expo: null,
|
||||
snappiness: null,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -1542,6 +1542,7 @@ var mspHelper = (function () {
|
|||
FC.EZ_TUNE.aggressiveness = data.getUint8(7);
|
||||
FC.EZ_TUNE.rate = data.getUint8(8);
|
||||
FC.EZ_TUNE.expo = data.getUint8(9);
|
||||
FC.EZ_TUNE.snappiness = data.getUint8(10);
|
||||
break;
|
||||
|
||||
case MSPCodes.MSP2_INAV_EZ_TUNE_SET:
|
||||
|
@ -2177,8 +2178,8 @@ var mspHelper = (function () {
|
|||
case MSPCodes.MSP2_INAV_EZ_TUNE_SET:
|
||||
|
||||
buffer.push(FC.EZ_TUNE.enabled);
|
||||
buffer.push(BitHelper.lowByte(FC.EZ_TUNE.filterHz));
|
||||
buffer.push(BitHelper.highByte(FC.EZ_TUNE.filterHz));
|
||||
buffer.push(lowByte(FC.EZ_TUNE.filterHz));
|
||||
buffer.push(highByte(FC.EZ_TUNE.filterHz));
|
||||
buffer.push(FC.EZ_TUNE.axisRatio);
|
||||
buffer.push(FC.EZ_TUNE.response);
|
||||
buffer.push(FC.EZ_TUNE.damping);
|
||||
|
@ -2186,6 +2187,7 @@ var mspHelper = (function () {
|
|||
buffer.push(FC.EZ_TUNE.aggressiveness);
|
||||
buffer.push(FC.EZ_TUNE.rate);
|
||||
buffer.push(FC.EZ_TUNE.expo);
|
||||
buffer.push(FC.EZ_TUNE.snappiness);
|
||||
break;
|
||||
|
||||
|
||||
|
|
|
@ -5720,6 +5720,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."
|
||||
},
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -203,6 +203,8 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
GUI.sliderize($('#ez_tune_rate'), FC.EZ_TUNE.rate, 0, 200);
|
||||
GUI.sliderize($('#ez_tune_expo'), FC.EZ_TUNE.expo, 0, 200);
|
||||
|
||||
GUI.sliderize($('#ez_tune_snappiness'), FC.EZ_TUNE.snappiness, 0, 100);
|
||||
|
||||
$('.ez-element').on('updated', function () {
|
||||
updatePreview();
|
||||
});
|
||||
|
@ -333,6 +335,7 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
FC.EZ_TUNE.aggressiveness = $('#ez_tune_aggressiveness').val();
|
||||
FC.EZ_TUNE.rate = $('#ez_tune_rate').val();
|
||||
FC.EZ_TUNE.expo = $('#ez_tune_expo').val();
|
||||
FC.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