diff --git a/src/app/components/calibrate/calibrate.component.ts b/src/app/components/calibrate/calibrate.component.ts index 0cd5eda..4b39c30 100644 --- a/src/app/components/calibrate/calibrate.component.ts +++ b/src/app/components/calibrate/calibrate.component.ts @@ -27,7 +27,7 @@ export class CalibrateComponent { setN() { let currentHeading = Math.round(this.physicsService.orientation.value.alpha); if(currentHeading > 0) { - this.calibration = currentHeading; + this.calibration = currentHeading - 360; } else { this.calibration = -currentHeading; }