Merge remote-tracking branch 'origin/master'

This commit is contained in:
Zakary Timson 2019-09-03 20:07:22 -04:00
commit a20dc25f71

View File

@ -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 > 180 ? currentHeading - 360 : currentHeading;
} else {
this.calibration = -currentHeading;
}