Browse Source

Reduce distance range again, because ti doesn't appear to be working right.

master
Starbeamrainbowlabs 3 years ago
parent
commit
1fb6c1f13e
  1. 4
      common/Normalisers.mjs

4
common/Normalisers.mjs

@ -32,7 +32,7 @@ function unnormalise_lng(nlng) { @@ -32,7 +32,7 @@ function unnormalise_lng(nlng) {
function normalise_gateway_distance(distance) {
return clamp(normalise(distance,
{ min: 0, max: 75000 },
{ min: 0, max: 20000 },
{ min: 0, max: 1 }
), 0, 1);
}
@ -40,7 +40,7 @@ function normalise_gateway_distance(distance) { @@ -40,7 +40,7 @@ function normalise_gateway_distance(distance) {
function unnormalise_gateway_distance(ndistance) {
return normalise(ndistance,
{ min: 0, max: 1 },
{ min: 0, max: 75000 }
{ min: 0, max: 20000 }
);
}

Loading…
Cancel
Save