diff options
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.scala | 4 |
1 files changed, 2 insertions, 2 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 2484561..0e95843 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 @@ -14,7 +14,7 @@ class Horizon(implicit env: Environment) extends SvgInstrument[(Double, Double)] lazy val moveable = Seq(pitch, roll) protected def update(pitchRoll: (Double, Double)) = { - translate(pitch, 0, pitchRoll._1.toInt) - rotate(roll, pitchRoll._2.toInt) + translate(pitch, 0, (pitchRoll._1 * 180 / math.Pi).toInt) // 1deg === 1px + rotate(roll, pitchRoll._2) } } |