Commit f368f900 authored by ctrenkov's avatar ctrenkov
Browse files

outputs mixer

parent c0b34eec
......@@ -22,6 +22,6 @@
<span class="btn default_btn narrow green" id="launch-solver"><a href="#" >Solve!</a></span>
<br/>
<textarea style="background-color: #EEEEF0; border-style: solid; float: right;" id="w3review" name="w3review" rows="10" cols="50">
this is a mixer test
Empty Mixer
</textarea>
</div>
......@@ -219,6 +219,19 @@ TABS.drone_canvas.initialize = function (callback) {
}
}
console.log(mixer);
//const round_mixer = mixer;
const text_box = document.getElementById("w3review");
var str = "pitch,\tyaw,\troll,\tpushx,\tpushy,\tpushz\n";
for(var i = 0; i < spin.length; i++){
for(var j = 0; j < 6; j++){
str += math.round(mixer[i][j], 2) + ",\t";
}
str += '\n';
}
text_box.value = str;
//console.log(math.round(math.multiply(mixer, math.transpose([0, 0, 1, 0, 1, 0])), 2));
}
//onAttemptSolve();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment