Fix stats tests by summarizing integer distances
This commit is contained in:
parent
7c8c71a3de
commit
025eb02a6a
4 changed files with 14 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ test('simple track', () => {
|
|||
const [ilon1, ilat1] = btools.util.CheapRuler.toIntegerLngLat(coord1);
|
||||
const [ilon2, ilat2] = btools.util.CheapRuler.toIntegerLngLat(coord2);
|
||||
|
||||
const distance = btools.util.CheapRuler.distance(ilon1, ilat1, ilon2, ilat2);
|
||||
const distance = btools.util.CheapRuler.calcDistance(ilon1, ilat1, ilon2, ilat2);
|
||||
const deltaHeight = coord2[2] - coord1[2];
|
||||
|
||||
stdPath.computeKinematic(rc, distance, deltaHeight, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue