Commit e76ebfce authored by Jens-Christian Fischer's avatar Jens-Christian Fischer
Browse files

orientation debugging

parent 73e2bf3a
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.15",
version: "0.0.16",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
......@@ -18,7 +18,7 @@ import SliderPanel from "./slider";
import OrientationPanel from "./orientation";
SliderPanel.init(socket, "#sliderPanel", ["s1", "s2", "s3"]);
OrientationPanel.init(socket, "#orientationPanel");
OrientationPanel.init(socket, "orientationPanel");
// Import local files
//
......
......@@ -37,7 +37,10 @@ let OrientationPanel = {
this.orientation = new Interface.Orientation({
onvaluechange: function(pitch, roll, yaw, heading) {
console.log(pitch, roll, yaw, heading);
that.send_value(pitch, roll, yaw, heading); }
// let rollEl = document.getElementById("roll");
// rollEl.innerHTML = roll;
that.send_value(pitch, roll, yaw, heading);
}
});
......
<h1>Grain <%= @grain %></h1>
<div id="#orientationPanel" class="interfacePanel"></div>
<div id="pitch">pitch</div>
<div id="roll">roll</div>
<div id="yaw">yaw</div>
<div id="heading"></div>
<div id="orientationPanel" class="interfacePanel"></div>
Supports Markdown
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