Skip to content

Commit

Permalink
reduce default ptracksInterval to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Jun 11, 2021
1 parent f7def20 commit b26f794
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ sudo wget -nv -O /usr/local/share/tar1090/html/upintheair.json "http://www.heywh
- Can be filtered by altitude with the altitude filter
- Configure a longer duration than 8 hours via the [configuration](#configuration-part-1-history-interval-and-number-of-snapshots--ptracks-duration-optional)
- Restrict the duration shown to 2 hours: /tar1090/?pTracks=2
- Draw less points which reduces display time (higher interval, lower compute time, default 30): /tar1090/?pTracks=8&pTracksInterval=60
- Draw less points which reduces display time (higher interval, lower compute time, default 15): /tar1090/?pTracks=8&pTracksInterval=60

## 0800-DESTROY-SD-CARD

Expand Down
4 changes: 2 additions & 2 deletions html/early.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let replay = false;
let rData = [];
let StaleReceiverCount = 0;
let pTracks = false;
let pTracksInterval = 30;
let pTracksInterval = 15;
let lastTraceGet = 0;
let traceRate = 0;
let _aircraft_type_cache = null;
Expand Down Expand Up @@ -175,7 +175,7 @@ if (usp.has('heatmap')) {
}
{
let value;
if (value = usp.getFloat('pTracksInterval')) {
if ((value = usp.getFloat('pTracksInterval')) != null) {
pTracksInterval = value;
}
}
Expand Down
2 changes: 1 addition & 1 deletion html/planeObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ PlaneObject.prototype.updateTrack = function(now, last, serverTrack, stale) {
// Add current position to the existing track.
// We only retain some points depending on time elapsed and track change
let turn_density = 6.5;
if (pTracks) turn_density = 3;
if (pTracks && pTracksInterval > 5) turn_density = 3;
if (
since_update > 86 + !!pTracks * 90 ||
(!on_ground && since_update > (100/turn_density)/track_change) ||
Expand Down

0 comments on commit b26f794

Please sign in to comment.