){
		document.getElementById("volt").innerHTML = msg.toFixed(2) + 'V';
		voltage = msg;
	});

	socket.on('cam', function(msg){
		document.getElementById("stream").innerHTML = img;
	});
	
	leftVector.x = Math.min(Math.max(parseInt(leftVector.x), -255), 255);
	leftVector.y = Math.min(Math.max(parseInt(leftVector.y), -255), 255);
	//c.fillText("Stick position: "+leftVector.x+"x "+leftVector.y+"y", 10, 10); 
	
	if(leftMot > 0) leftMot += 90;
	if(leftMot < 0) leftMot -= 90;
	if(rightMot > 0) rightMot += 90;
	if(