mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 19:40:22 +03:00
Merge pull request #2318 from iNavFlight/mmosca-edit-safehome-fix
fix safehome lat/lon edits
This commit is contained in:
commit
baf9af6e73
1 changed files with 4 additions and 4 deletions
|
@ -3224,8 +3224,8 @@ TABS.mission_control.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#safehomeLatitude').on('change', event => {
|
$('#safehomeLatitude').on('change', event => {
|
||||||
if (selectedFwApproachSh) {
|
if (selectedSafehome && selectedFwApproachSh) {
|
||||||
selectedFwApproachSh.setLat(Math.round(Number($(event.currentTarget).val()) * 1e7));
|
selectedSafehome.setLat(Math.round(Number($(event.currentTarget).val()) * 1e7));
|
||||||
renderSafeHomeOptions();
|
renderSafeHomeOptions();
|
||||||
cleanSafehomeLayers();
|
cleanSafehomeLayers();
|
||||||
renderSafehomesOnMap();
|
renderSafehomesOnMap();
|
||||||
|
@ -3234,8 +3234,8 @@ TABS.mission_control.initialize = function (callback) {
|
||||||
|
|
||||||
|
|
||||||
$('#safehomeLongitude').on('change', event => {
|
$('#safehomeLongitude').on('change', event => {
|
||||||
if (selectedFwApproachSh) {
|
if (selectedSafehome && selectedFwApproachSh) {
|
||||||
selectedFwApproachSh.setLon(Math.round(Number($(event.currentTarget).val()) * 1e7));
|
selectedSafehome.setLon(Math.round(Number($(event.currentTarget).val()) * 1e7));
|
||||||
renderSafeHomeOptions();
|
renderSafeHomeOptions();
|
||||||
cleanSafehomeLayers();
|
cleanSafehomeLayers();
|
||||||
renderSafehomesOnMap();
|
renderSafehomesOnMap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue