aboutsummaryrefslogtreecommitdiff
path: root/vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-04-14 11:49:44 +0200
committerJakob Odersky <jodersky@gmail.com>2015-04-15 12:00:21 +0200
commitfaf47af828149e45ec3f0a06d287b9d54600a559 (patch)
treee7ff70d7c0bd793f6bb8da8967f3f523c71b2dc2 /vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala
parent7183beef6a70f16318a6feb21e84fe71d57bdd86 (diff)
downloadmavigator-faf47af828149e45ec3f0a06d287b9d54600a559.tar.gz
mavigator-faf47af828149e45ec3f0a06d287b9d54600a559.tar.bz2
mavigator-faf47af828149e45ec3f0a06d287b9d54600a559.zip
pass rx value of instruments as a parameter
Diffstat (limited to 'vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala')
-rw-r--r--vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala b/vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala
index 0e95843..bbfe8cf 100644
--- a/vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala
+++ b/vfd-dashboard/src/main/scala/vfd/dashboard/ui/instruments/Horizon.scala
@@ -1,13 +1,12 @@
package vfd.dashboard.ui.instruments
import org.scalajs.dom.html
+import rx._
import vfd.dashboard.Environment
-class Horizon(implicit env: Environment) extends SvgInstrument[(Double, Double)] {
+class Horizon(val value: Rx[(Double, Double)])(implicit env: Environment) extends SvgInstrument[(Double, Double)] {
import SvgInstrument._
- val initial = (0.0, 0.0)
-
lazy val element = svgObject("horizon")
lazy val pitch = part("pitch")
lazy val roll = part("roll")