mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-19 14:25:13 +03:00
Adjust Base Leg
This commit is contained in:
parent
d09f22fd9c
commit
966b2bccef
1 changed files with 7 additions and 2 deletions
|
@ -81,7 +81,7 @@ TABS.mission_control.initialize = function (callback) {
|
|||
var textGeom;
|
||||
let isOffline = false;
|
||||
let rthUpdateInterval = 0;
|
||||
let settings = { speed: 0, alt: 5000, safeRadiusSH : 50, maxDistSH : 0, fwApproachLength: 0, fwApproachAlt: 60, fwLandAlt: 5};
|
||||
let settings = { speed: 0, alt: 5000, safeRadiusSH : 50, maxDistSH : 0, fwApproachLength: 0, fwApproachAlt: 60, fwLandAlt: 5, fwLoiterRadius: 0};
|
||||
|
||||
if (GUI.active_tab != 'mission_control') {
|
||||
GUI.active_tab = 'mission_control';
|
||||
|
@ -105,6 +105,11 @@ TABS.mission_control.initialize = function (callback) {
|
|||
settings.maxDistSH = parseInt(data.value) / 100;
|
||||
}).then(callback);
|
||||
},
|
||||
function (callback) {
|
||||
mspHelper.getSetting(("nav_fw_loiter_radius")).then((data) => {
|
||||
settings.fwLoiterRadius = parseInt(data.value);
|
||||
}).then(callback);
|
||||
}
|
||||
]);
|
||||
loadChainer.setExitPoint(loadHtml);
|
||||
loadChainer.execute();
|
||||
|
@ -636,7 +641,7 @@ TABS.mission_control.initialize = function (callback) {
|
|||
} else {
|
||||
direction = wrap_360(bearing - 90);
|
||||
}
|
||||
var pos2 = calculate_new_cooridatnes(pos1, direction, approachLength / 2);
|
||||
var pos2 = calculate_new_cooridatnes(pos1, direction, settings.fwLoiterRadius * 2.5);
|
||||
|
||||
paintApproachLine(landCoord, pos2, '#0025a1', layers);
|
||||
paintApproachLine(pos2, pos1, '#0025a1', layers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue