Merge remote-tracking branch 'origin/master'
This commit is contained in:
		@@ -27,7 +27,7 @@ export class CalibrateComponent {
 | 
				
			|||||||
    setN() {
 | 
					    setN() {
 | 
				
			||||||
        let currentHeading = Math.round(this.physicsService.orientation.value.alpha);
 | 
					        let currentHeading = Math.round(this.physicsService.orientation.value.alpha);
 | 
				
			||||||
        if(currentHeading > 0) {
 | 
					        if(currentHeading > 0) {
 | 
				
			||||||
            this.calibration = currentHeading;
 | 
					            this.calibration = currentHeading > 180 ? currentHeading - 360 : currentHeading;
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            this.calibration = -currentHeading;
 | 
					            this.calibration = -currentHeading;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user