Skip to content

Commit

Permalink
fix speed when used with dup1090-mutability
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Mar 20, 2021
1 parent fe420e9 commit 965ca82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions html/planeObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -1268,20 +1268,20 @@ PlaneObject.prototype.updateData = function(now, last, data, init) {
if (this.icao[0] == '~')
this.zIndex -= 100000;

// needed for track labels
if (pTracks) {
this.speed = Math.max(this.speed, gs);
} else {
this.speed = gs;
}

if (gs != null)
this.gs = gs;
else if (data.speed != null)
this.gs = data.speed;
else if (!pTracks)
this.gs = null;

// needed for track labels
if (pTracks) {
this.speed = Math.max(this.speed, gs);
} else {
this.speed = gs;
}

this.track = track;
if (track != null) {
this.rotation = track;
Expand Down
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash

set -e
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
renice 10 $$

if [ -d /bup ]; then
echo Talk to @PIL. Dieses Skript ist nichts fuer dich!
exit 1
fi

trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR

srcdir=/run/dump1090-fa
repo="https://github.com/wiedehopf/tar1090"
Expand Down

0 comments on commit 965ca82

Please sign in to comment.