Fixed tabs/space mixup

Esse commit está contido em:
Laurent Eschenauer
2013-05-29 21:03:34 +02:00
commit 3c69861faa
4 arquivos alterados com 21 adições e 21 exclusões
+4 -4
Ver Arquivo
@@ -16,13 +16,13 @@
// Bind to navdata events on websockets
var self = this;
this.cockpit.socket.on('navdata', function(data) {
if (!jQuery.isEmptyObject(data)) {
requestAnimationFrame(function() {
this.cockpit.socket.on('navdata', function(data) {
if (!jQuery.isEmptyObject(data)) {
requestAnimationFrame(function() {
self.render(data);
});
}
});
});
// Initial draw
this.draw();
+13 -13
Ver Arquivo
@@ -73,13 +73,13 @@
// Bind to navdata events on websockets
var ah = this;
this.cockpit.socket.on('navdata', function(data) {
if (!jQuery.isEmptyObject(data)) {
requestAnimationFrame(function() {
this.cockpit.socket.on('navdata', function(data) {
if (!jQuery.isEmptyObject(data)) {
requestAnimationFrame(function() {
ah.render(data);
});
}
});
});
// Bind on window events to resize
$(window).resize(function(event) {
@@ -91,12 +91,12 @@
AH.prototype.render = function(data) {
this.setValues({
roll : data.demo.rotation.roll * Math.PI / 180,
pitch : data.demo.rotation.pitch * Math.PI / 180,
altitude : data.demo.altitudeMeters,
speed : data.demo.velocity.z
// no idea...
});
roll : data.demo.rotation.roll * Math.PI / 180,
pitch : data.demo.rotation.pitch * Math.PI / 180,
altitude : data.demo.altitudeMeters,
speed : data.demo.velocity.z
// no idea...
});
this.draw();
}
@@ -527,9 +527,9 @@
AH.prototype.draw = function draw() {
this.ctx.canvas.width = $('#cockpit').innerWidth();
this.ctx.canvas.height = $('#cockpit').innerHeight();
this.ctx.canvas.width = $('#cockpit').innerWidth();
this.ctx.canvas.height = $('#cockpit').innerHeight();
this.ctx.clearRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height);
this.drawHorizon();
this.drawZero();
+2 -2
Ver Arquivo
@@ -13,7 +13,7 @@
setInterval(function() {
videoImg.attr("src", '/camera/' + new Date().getTime());
}, 100);
};
};
window.Cockpit.plugins.push(Video);
window.Cockpit.plugins.push(Video);
}(window, document));
+2 -2
Ver Arquivo
@@ -9,7 +9,7 @@
// Start the stream
new NodecopterStream(document.getElementById("dronestream"), {port: 3001});
};
};
window.Cockpit.plugins.push(Video);
window.Cockpit.plugins.push(Video);
}(window, document));