Fixed setN (?)
This commit is contained in:
parent
5055fa159a
commit
10a0f97e0d
@ -26,7 +26,7 @@ export class CalibrateComponent {
|
||||
|
||||
setN() {
|
||||
let currentHeading = Math.round(this.physicsService.orientation.value.alpha);
|
||||
if(currentHeading > 180) {
|
||||
if(currentHeading > 0) {
|
||||
this.calibration = -currentHeading;
|
||||
} else {
|
||||
this.calibration = 360 - currentHeading;
|
||||
|
Loading…
Reference in New Issue
Block a user