Skip to content

Commit

Permalink
NMEA deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx committed Oct 1, 2022
1 parent fbf56ac commit d14b327
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
2 changes: 1 addition & 1 deletion tabs/gps.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down
6 changes: 6 additions & 0 deletions tabs/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit d14b327

Please sign in to comment.