kopia lustrzana https://github.com/cyoung/stratux
Minor ahrs.js name changes.
rodzic
1904227438
commit
9e101b4cf5
|
|
@ -1,4 +1,4 @@
|
|||
function ahrsRenderer(locationId) {
|
||||
function AHRSRenderer(locationId) {
|
||||
this.width = -1;
|
||||
this.height = -1;
|
||||
|
||||
|
|
@ -93,8 +93,8 @@ function ahrsRenderer(locationId) {
|
|||
this.errTextBg = this.err.rect(tb.x, tb.y, tb.w, tb.h).stroke({'width': 1}).after(this.errText);
|
||||
}
|
||||
|
||||
ahrsRenderer.prototype = {
|
||||
constructor: ahrsRenderer,
|
||||
AHRSRenderer.prototype = {
|
||||
constructor: AHRSRenderer,
|
||||
|
||||
resize: function () {
|
||||
var canvasWidth = this.canvas.parentElement.offsetWidth - 12;
|
||||
|
|
@ -138,7 +138,7 @@ ahrsRenderer.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
function gMeterRenderer(locationId, plim, nlim) {
|
||||
function GMeterRenderer(locationId, plim, nlim) {
|
||||
this.plim = plim;
|
||||
this.nlim = nlim;
|
||||
this.nticks = Math.floor(plim+1) - Math.floor(nlim) + 1;
|
||||
|
|
@ -215,8 +215,8 @@ function gMeterRenderer(locationId, plim, nlim) {
|
|||
}, this);
|
||||
}
|
||||
|
||||
gMeterRenderer.prototype = {
|
||||
constructor: gMeterRenderer,
|
||||
GMeterRenderer.prototype = {
|
||||
constructor: GMeterRenderer,
|
||||
|
||||
resize: function () {
|
||||
var canvasWidth = this.canvas.parentElement.offsetWidth - 12;
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
|
|||
};
|
||||
|
||||
// GPS/AHRS Controller tasks go here
|
||||
var ahrs = new ahrsRenderer("ahrs_display");
|
||||
var ahrs = new AHRSRenderer("ahrs_display");
|
||||
|
||||
$scope.hideClick = function() {
|
||||
$scope.isHidden = !$scope.isHidden;
|
||||
|
|
@ -319,7 +319,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
|
|||
return caging;
|
||||
};
|
||||
|
||||
var gMeter = new gMeterRenderer("gMeter_display", 4.4, -1.76);
|
||||
var gMeter = new GMeterRenderer("gMeter_display", 4.4, -1.76);
|
||||
|
||||
// GPS Controller tasks
|
||||
connect($scope); // connect - opens a socket and listens for messages
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue