correct assignments
parent
96cdd1d6c3
commit
46f72b344e
16
tabs/gps.js
16
tabs/gps.js
|
@ -19,12 +19,12 @@ function tab_initialize_gps () {
|
||||||
|
|
||||||
function update_ui() {
|
function update_ui() {
|
||||||
$('.GPS_info td.fix').html((GPS_DATA.fix) ? '<span style="color: green">True</span>' : '<span style="color: red">False</span>');
|
$('.GPS_info td.fix').html((GPS_DATA.fix) ? '<span style="color: green">True</span>' : '<span style="color: red">False</span>');
|
||||||
$('.GPS_info td.alt').html(GPS_DATA.alt + ' m');
|
$('.GPS_info td.alt').text(GPS_DATA.alt + ' m');
|
||||||
$('.GPS_info td.lat').html((GPS_DATA.lat / 10000000).toFixed(4) + ' deg');
|
$('.GPS_info td.lat').text((GPS_DATA.lat / 10000000).toFixed(4) + ' deg');
|
||||||
$('.GPS_info td.lon').html((GPS_DATA.lon / 10000000).toFixed(4) + ' deg');
|
$('.GPS_info td.lon').text((GPS_DATA.lon / 10000000).toFixed(4) + ' deg');
|
||||||
$('.GPS_info td.speed').html(GPS_DATA.speed + ' cm/s');
|
$('.GPS_info td.speed').text(GPS_DATA.speed + ' cm/s');
|
||||||
$('.GPS_info td.sats').html(GPS_DATA.numSat);
|
$('.GPS_info td.sats').text(GPS_DATA.numSat);
|
||||||
$('.GPS_info td.distToHome').html(GPS_DATA.distanceToHome + ' m');
|
$('.GPS_info td.distToHome').text(GPS_DATA.distanceToHome + ' m');
|
||||||
|
|
||||||
// Update GPS Signal Strengths
|
// Update GPS Signal Strengths
|
||||||
var e_ss_table = $('div.GPS_signal_strength table tr:not(.titles)');
|
var e_ss_table = $('div.GPS_signal_strength table tr:not(.titles)');
|
||||||
|
@ -32,8 +32,8 @@ function tab_initialize_gps () {
|
||||||
for (var i = 0; i < GPS_DATA.chn.length; i++) {
|
for (var i = 0; i < GPS_DATA.chn.length; i++) {
|
||||||
var row = e_ss_table.eq(i);
|
var row = e_ss_table.eq(i);
|
||||||
|
|
||||||
$('td', row).eq(0).html(GPS_DATA.svid[i]);
|
$('td', row).eq(0).text(GPS_DATA.svid[i]);
|
||||||
$('td', row).eq(1).html(GPS_DATA.quality[i]);
|
$('td', row).eq(1).text(GPS_DATA.quality[i]);
|
||||||
$('td', row).eq(2).find('progress').val(GPS_DATA.cno[i]);
|
$('td', row).eq(2).find('progress').val(GPS_DATA.cno[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue