Fixed setN (?)
This commit is contained in:
parent
5055fa159a
commit
10a0f97e0d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user