kopia lustrzana https://github.com/cyoung/stratux
Improved formatting of calibration warning message.
rodzic
ae92bae0d3
commit
a23a29fdfd
|
@ -154,7 +154,7 @@
|
||||||
.error .errText {
|
.error .errText {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
text-anchor: middle;
|
text-anchor: central;
|
||||||
alignment-baseline: middle;
|
alignment-baseline: middle;
|
||||||
stroke-width: 0px;
|
stroke-width: 0px;
|
||||||
fill: red;
|
fill: red;
|
||||||
|
|
|
@ -130,7 +130,7 @@ ahrsRenderer.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
turn_off: function(message) {
|
turn_off: function(message) {
|
||||||
this.errText.text(message);
|
this.errText.text(message).center(0, 0);
|
||||||
var tb = this.errText.bbox();
|
var tb = this.errText.bbox();
|
||||||
this.errTextBg.attr({'x': tb.x, 'y': tb.y, 'width': tb.w, 'height': tb.h});
|
this.errTextBg.attr({'x': tb.x, 'y': tb.y, 'width': tb.w, 'height': tb.h});
|
||||||
this.ai.hide();
|
this.ai.hide();
|
||||||
|
|
|
@ -265,7 +265,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
|
||||||
$scope.IsCaging = function() {
|
$scope.IsCaging = function() {
|
||||||
var caging = statusCal.innerText === "Caging";
|
var caging = statusCal.innerText === "Caging";
|
||||||
if (caging) {
|
if (caging) {
|
||||||
ahrs.turn_off("Sensor is calibrating.\nFly level and do not move sensor.");
|
ahrs.turn_off("Calibrating. Fly level and do not move sensor.");
|
||||||
} else {
|
} else {
|
||||||
ahrs.turn_on();
|
ahrs.turn_on();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue