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

This commit is contained in:
Starbeamrainbowlabs 2019-08-06 15:49:52 +01:00
parent 46d2af6124
commit 1fb6c1f13e

View file

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