Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2022-10-01 21:56:53 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2022-10-01 21:56:53 +0300
commitd14b3279a405c3fc51f4639da6c0c7751ff6512c (patch)
tree9dd13f4ad1dcd39a0cdce4defd5cdda9d552ed33
parentfbf56ac3b0c5f391b20f7e9a495a1362c78c6799 (diff)
NMEA deprecation warning
-rwxr-xr-x_locales/en/messages.json3
-rw-r--r--tabs/gps.html2
-rw-r--r--tabs/gps.js6
3 files changed, 10 insertions, 1 deletions
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 3bfd2856..e3d2e7f5 100755
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -4340,5 +4340,8 @@
},
"throttle_scale_help": {
"message": "Allow to limit effective power fed to the motors. Throttle Scale 1 mean there is no power limiting. Throttle Scale 0.5 means throttle position will be cut in half before passed to the motors."
+ },
+ "nmeaWarning": {
+ "message": "NMEA protocol is deprecated and might be removed in the future. Please use UBLOX or UBLOX7 protocol instead."
}
}
diff --git a/tabs/gps.html b/tabs/gps.html
index 15c84190..b8493250 100644
--- a/tabs/gps.html
+++ b/tabs/gps.html
@@ -20,7 +20,7 @@
<label for="feature-7"><span data-i18n="featureGPS"></span></label>
<div for="feature-7" class="helpicon cf_tip" data-i18n_title="featureGPSTip"></div>
</div>
-
+ <div id="nmeaWarning" data-i18n="nmeaWarning" class="warning-box"></div>
<div class="select">
<select id="gps_protocol" class="gps_protocol">
<!-- list generated here -->
diff --git a/tabs/gps.js b/tabs/gps.js
index 0d103ea8..7254369c 100644
--- a/tabs/gps.js
+++ b/tabs/gps.js
@@ -76,9 +76,15 @@ TABS.gps.initialize = function (callback) {
gps_protocol_e.change(function () {
MISC.gps_type = parseInt($(this).val());
+ if (MISC.gps_type == 0) {
+ $('#nmeaWarning').show();
+ } else {
+ $('#nmeaWarning').hide();
+ }
});
gps_protocol_e.val(MISC.gps_type);
+ gps_protocol_e.change();
var gps_ubx_sbas_e = $('#gps_ubx_sbas');
for (i = 0; i < gpsSbas.length; i++) {