Skip to content

Commit

Permalink
Disable location requests (pend openvps discover)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-liang committed Apr 26, 2024
1 parent 77d2f9b commit cf8baba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/systems/armarker/armarker-reloc.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ export default class ARMarkerRelocalization {

// do we have detected markers to publish ?
if (pubDetList.length > 0 && ARENA) {
if (ARENA.clientCoords === undefined) {
ARENAUtils.getLocation((coords, err) => {
if (!err) ARENA.clientCoords = coords;
});
}
// if (ARENA.clientCoords === undefined) {
// ARENAUtils.getLocation((coords, err) => {
// if (!err) ARENA.clientCoords = coords;
// });
// }
const jsonMsg = {
...this.DFT_DETECTION_MSG,
timestamp,
Expand Down
10 changes: 5 additions & 5 deletions src/systems/armarker/armarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ AFRAME.registerSystem('armarker', {
};
}
if (!this.ATLASMarkers[markerid]) {
if (ARENA.clientCoords === undefined) {
ARENAUtils.getLocation((coords, err) => {
if (!err) ARENA.clientCoords = coords;
});
}
// if (ARENA.clientCoords === undefined) {
// ARENAUtils.getLocation((coords, err) => {
// if (!err) ARENA.clientCoords = coords;
// });
// }
// force update from ATLAS if not found
// this.getARMArkersFromATLAS();
}
Expand Down

0 comments on commit cf8baba

Please sign in to comment.