INNER CODE UNIT · JavaScript

ready

CopterExpress/clover · clover_blocks/www/main.js:49

var ready = readParams(); // initialization complete promise

var pythonArea = document.getElementById('python');

// update Python code
workspace.addChangeListener(function(e) {
	ready.then(function() {
		pythonArea.innerHTML = generateUserCode(workspace);
		hljs.highlightBlock(pythonArea);
	});
});

var running = false;
var runRequest = false;

new ROSLIB.Topic({ ros: ros.ros, name: ros.priv + 'block', messageType: 'std_msgs/String' }).subscribe(function(msg) {
	workspace.highlightBlock(msg.data);
	runRequest = false;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…