This commit is contained in:
2019-08-23 17:58:13 -04:00
parent 37a6ae92ae
commit 1f2f8923a9
3 changed files with 20 additions and 2 deletions

View File

@ -23,8 +23,6 @@ export class PhysicsService {
window.addEventListener('deviceorientation', orientation => this.orientation.next(orientation));
window.addEventListener('devicemotion', motion => this.motion.next(motion));
navigator.geolocation.watchPosition(position => this.position.next(position));
navigator.geolocation.getCurrentPosition(e => console.log(e));
this.position.subscribe(e => console.log(e));
// Combine data into one nice package
combineLatest(this.position, this.orientation, this.calibrate).subscribe(data => {