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