Fixed setN (?)

This commit is contained in:
Zakary Timson 2019-09-02 22:10:39 -04:00
parent 5055fa159a
commit 10a0f97e0d

View File

@ -26,7 +26,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 > 180) { if(currentHeading > 0) {
this.calibration = -currentHeading; this.calibration = -currentHeading;
} else { } else {
this.calibration = 360 - currentHeading; this.calibration = 360 - currentHeading;