mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 17:55:21 +03:00
Fix Geozone sanity check - ASL
This commit is contained in:
parent
33888c9e42
commit
f99a685372
2 changed files with 12 additions and 6 deletions
|
@ -85,16 +85,24 @@ let Geozone = function (type, shape, minAltitude, maxAltitude, sealevelRef, radi
|
|||
}
|
||||
|
||||
self.setMinAltitude = (data) => {
|
||||
if (!isNaN(data)){
|
||||
minAltitude = parseInt(data);
|
||||
} else {
|
||||
minAltitude = data;
|
||||
}
|
||||
}
|
||||
|
||||
self.getMinAltitude = () => {
|
||||
return minAltitude;
|
||||
}
|
||||
|
||||
self.setMaxAltitude = (data) => {
|
||||
if (!isNaN(data)){
|
||||
maxAltitude = parseInt(data);
|
||||
} else {
|
||||
maxAltitude = data;
|
||||
}
|
||||
}
|
||||
|
||||
self.getMaxAltitude = () => {
|
||||
return maxAltitude;
|
||||
|
|
|
@ -977,8 +977,6 @@ TABS.mission_control.initialize = function (callback) {
|
|||
reasons.push(i18n.getMessage("gezoneInvalidReasonMinMaxAlt"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (reasons.length > 0) {
|
||||
$('#geozoneInvalidContent').append(`<div style="display: inline-block">${i18n.getMessage("geozone")} ${zone.getNumber() + 1}: ${reasons.join(", ")}</div><br/>`);
|
||||
invalidGeoZones = true;
|
||||
|
@ -1748,10 +1746,10 @@ TABS.mission_control.initialize = function (callback) {
|
|||
<span class="vertexNumber"></span> \
|
||||
</td> \
|
||||
<td> \
|
||||
<input type="number" class="vertexLat"/> \
|
||||
<input type="number" step="0.0000001" class="vertexLat"/> \
|
||||
</td> \
|
||||
<td> \
|
||||
<input type="number" class="vertexLon"/> \
|
||||
<input type="number" step="0.0000001" class="vertexLon"/> \
|
||||
</td> \
|
||||
</tr> \
|
||||
');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue