Skip to content

Commit 27f28e5

Browse files
fixed altitude being displayed in decimal
1 parent 8514b93 commit 27f28e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 37
2+
# version 38
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/tracker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,12 @@ function updateVehicleInfo(index, position) {
391391
+ '<div class="right">'
392392
+ '<dl>'
393393
+ (position.gps_alt != 0 ? '<dt>'+ascent_text+'</dt><dd>rate</dd>' : '')
394-
+ '<dt>'+((imp) ? parseInt(3.2808399 * position.gps_alt) + ' ft': position.gps_alt + ' m')+'</dt><dd>altitude</dd>'
395-
+ '<dt>'+((imp) ? parseInt(3.2808399 * vehicles[index].max_alt) + ' ft': vehicles[index].max_alt + ' m')+'</dt><dd>max alt</dd>'
394+
+ '<dt>'+((imp) ? parseInt(3.2808399 * position.gps_alt) + ' ft': parseInt(position.gps_alt) + ' m')+'</dt><dd>altitude</dd>'
395+
+ '<dt>'+((imp) ? parseInt(3.2808399 * vehicles[index].max_alt) + ' ft': parseInt(vehicles[index].max_alt) + ' m')+'</dt><dd>max alt</dd>'
396396
+ '';
397397
// mid for landscape
398398
var l = (position.gps_alt != 0 ? '<dt>'+ascent_text+'</dt><dd>rate</dd>' : '')
399-
+ '<dt>'+((imp) ? parseInt(3.2808399 * position.gps_alt) + 'ft': position.gps_alt + 'm')+' ('+((imp) ? parseInt(3.2808399 * vehicles[index].max_alt) + 'ft' : vehicles[index].max_alt + 'm')+')</dt><dd>altitude (max)</dd>'
399+
+ '<dt>'+((imp) ? parseInt(3.2808399 * position.gps_alt) + 'ft': parseInt(position.gps_alt) + 'm')+' ('+((imp) ? parseInt(3.2808399 * vehicles[index].max_alt) + 'ft' : parseInt(vehicles[index].max_alt) + 'm')+')</dt><dd>altitude (max)</dd>'
400400
+ '<dt>'+position.gps_time+'</dt><dd>datetime</dd>'
401401
+ '<dt>'+coords_text+'</dt><dd>coordinates</dd>'
402402
+ habitat_data(position.data)

0 commit comments

Comments
 (0)