Increase the range when normalising the distance tot he gateway

This commit is contained in:
Starbeamrainbowlabs 2019-08-06 12:10:23 +01:00
parent 5e78f5c788
commit 25a817331f

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: 20000 }, { min: 0, max: 75000 },
{ min: 0, max: 1 } { min: 0, max: 1 }
), 0, 1); ), 0, 1);
} }